aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/commands/archive.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-11 00:15:14 +0900
committernsfisis <nsfisis@gmail.com>2026-02-11 00:15:14 +0900
commit8441abd29aea53719c19f34ec6d542a4575a23c9 (patch)
tree2d5704acdae268253b69c4bb9a37653635037138 /src/commands/archive.rs
parent9dacb9293f9b995c6c810227f73b4aa5cf019bab (diff)
downloadphp-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.tar.gz
php-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.tar.zst
php-mozart-8441abd29aea53719c19f34ec6d542a4575a23c9.zip
define subcommands and options
Diffstat (limited to 'src/commands/archive.rs')
-rw-r--r--src/commands/archive.rs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/commands/archive.rs b/src/commands/archive.rs
new file mode 100644
index 0000000..1fbef6c
--- /dev/null
+++ b/src/commands/archive.rs
@@ -0,0 +1,30 @@
+use clap::Args;
+
+#[derive(Args)]
+pub struct ArchiveArgs {
+ /// The package name
+ pub package: Option<String>,
+
+ /// A version constraint
+ pub version: Option<String>,
+
+ /// Format of the resulting archive (tar, tar.gz, tar.bz2, zip)
+ #[arg(short, long)]
+ pub format: Option<String>,
+
+ /// Write the archive to this directory
+ #[arg(long)]
+ pub dir: Option<String>,
+
+ /// Write the archive with the given file name
+ #[arg(long)]
+ pub file: Option<String>,
+
+ /// Ignore filters when saving archive
+ #[arg(long)]
+ pub ignore_filters: bool,
+}
+
+pub fn execute(_args: &ArchiveArgs) {
+ todo!()
+}