use clap::{Subcommand, ArgAction};
#[derive(Subcommand, Debug)]
pub enum Commands {
#[command(about = "Run a script by name defined in Scripts.toml")]
Run {
#[arg(value_name = "SCRIPT_NAME", action = ArgAction::Set)]
script: String,
#[arg(short, long, value_name = "KEY=VALUE", action = ArgAction::Append)]
env: Vec<String>,
},
#[command(about = "Initialize a Scripts.toml file in the current directory")]
Init,
#[command(about = "Show all script names and descriptions defined in Scripts.toml")]
Show,
}
pub mod init;
pub mod script;
pub mod show;