feat: matcha binary skeleton with clap command surface
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
eb392baf68
commit
fbb9282f7e
4 files changed
+82
No files matched your search
@@ -0,0 +1,16 @@
|
||||
use assert_cmd::Command;
|
||||
use predicates::str::contains;
|
||||
|
||||
#[test]
|
||||
fn help_lists_all_subcommands() {
|
||||
Command::cargo_bin("matcha").unwrap()
|
||||
.arg("--help").assert().success()
|
||||
.stdout(contains("new")).stdout(contains("run"))
|
||||
.stdout(contains("create")).stdout(contains("add"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn new_requires_a_name() {
|
||||
Command::cargo_bin("matcha").unwrap()
|
||||
.arg("new").assert().failure(); // missing <name>
|
||||
}
|
||||
Reference in new issue
Block a user