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/depends.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/commands/depends.rs (limited to 'src/commands/depends.rs') diff --git a/src/commands/depends.rs b/src/commands/depends.rs new file mode 100644 index 0000000..33aabc6 --- /dev/null +++ b/src/commands/depends.rs @@ -0,0 +1,23 @@ +use clap::Args; + +#[derive(Args)] +pub struct DependsArgs { + /// Package to inspect + pub package: String, + + /// Recursively resolve up to the root package + #[arg(short, long)] + pub recursive: bool, + + /// Prints the results as a nested tree + #[arg(short, long)] + pub tree: bool, + + /// Read dependency information from the lock file + #[arg(long)] + pub locked: bool, +} + +pub fn execute(_args: &DependsArgs) { + todo!() +} -- cgit v1.3.1