diff --git a/crates/dinopkg-cli/src/command.rs b/crates/dinopkg-cli/src/command.rs index e6e7c0a..71e9606 100644 --- a/crates/dinopkg-cli/src/command.rs +++ b/crates/dinopkg-cli/src/command.rs @@ -17,4 +17,8 @@ pub enum Command { /// The name of the script to run script_name: Option, }, + + /// Run tests for a package + #[command(aliases = ["tst", "t"])] + Test, } diff --git a/crates/dinopkg-cli/src/main.rs b/crates/dinopkg-cli/src/main.rs index e53c48f..6df3aa5 100644 --- a/crates/dinopkg-cli/src/main.rs +++ b/crates/dinopkg-cli/src/main.rs @@ -17,6 +17,7 @@ async fn main() -> Result<()> { let cli = Cli::parse(); match cli.command { Command::Run { script_name } => command::run::run(script_name).await?, + Command::Test => command::run::run(Some("test".into())).await?, } Ok(()) }