diff options
Diffstat (limited to 'src/commands/archive.rs')
| -rw-r--r-- | src/commands/archive.rs | 30 |
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!() +} |
