mirror of
https://github.com/SkyfallWasTaken/dinopkg.git
synced 2024-11-22 14:53:39 +00:00
Add test command
This commit is contained in:
parent
baa25bcb45
commit
b80ab66892
2 changed files with 5 additions and 0 deletions
|
@ -17,4 +17,8 @@ pub enum Command {
|
||||||
/// The name of the script to run
|
/// The name of the script to run
|
||||||
script_name: Option<String>,
|
script_name: Option<String>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/// Run tests for a package
|
||||||
|
#[command(aliases = ["tst", "t"])]
|
||||||
|
Test,
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ async fn main() -> Result<()> {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Command::Run { script_name } => command::run::run(script_name).await?,
|
Command::Run { script_name } => command::run::run(script_name).await?,
|
||||||
|
Command::Test => command::run::run(Some("test".into())).await?,
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue