aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/commands/depends.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/depends.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/depends.rs')
-rw-r--r--src/commands/depends.rs23
1 files changed, 23 insertions, 0 deletions
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!()
+}