Add test command

This commit is contained in:
SkyfallWasTaken 2024-07-10 18:24:45 +01:00
parent baa25bcb45
commit b80ab66892
2 changed files with 5 additions and 0 deletions

View file

@ -17,4 +17,8 @@ pub enum Command {
/// The name of the script to run
script_name: Option<String>,
},
/// Run tests for a package
#[command(aliases = ["tst", "t"])]
Test,
}

View file

@ -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(())
}