feat: matcha binary skeleton with clap command surface

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-11 12:41:27 -05:00
1 parent eb392baf68
commit fbb9282f7e
4 files changed
+82

No files matched your search

+16
View File
@@ -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>
}