aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/commands/run_script.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/run_script.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/run_script.rs')
-rw-r--r--src/commands/run_script.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/commands/run_script.rs b/src/commands/run_script.rs
new file mode 100644
index 0000000..e2349a2
--- /dev/null
+++ b/src/commands/run_script.rs
@@ -0,0 +1,31 @@
+use clap::Args;
+
+#[derive(Args)]
+pub struct RunScriptArgs {
+ /// Script name to run
+ pub script: Option<String>,
+
+ /// Arguments to pass to the script
+ #[arg(trailing_var_arg = true)]
+ pub args: Vec<String>,
+
+ /// Set the script timeout in seconds
+ #[arg(long)]
+ pub timeout: Option<u64>,
+
+ /// Sets the dev mode
+ #[arg(long)]
+ pub dev: bool,
+
+ /// Disables the dev mode
+ #[arg(long)]
+ pub no_dev: bool,
+
+ /// List the available scripts
+ #[arg(short, long)]
+ pub list: bool,
+}
+
+pub fn execute(_args: &RunScriptArgs) {
+ todo!()
+}