From 8441abd29aea53719c19f34ec6d542a4575a23c9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 11 Feb 2026 00:15:14 +0900 Subject: define subcommands and options --- src/commands/archive.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/commands/archive.rs (limited to 'src/commands/archive.rs') 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, + + /// A version constraint + pub version: Option, + + /// Format of the resulting archive (tar, tar.gz, tar.bz2, zip) + #[arg(short, long)] + pub format: Option, + + /// Write the archive to this directory + #[arg(long)] + pub dir: Option, + + /// Write the archive with the given file name + #[arg(long)] + pub file: Option, + + /// Ignore filters when saving archive + #[arg(long)] + pub ignore_filters: bool, +} + +pub fn execute(_args: &ArchiveArgs) { + todo!() +} -- cgit v1.3.1