feat: matcha add appends capability handler to the controller
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
72e984d35c
commit
4fe5b53e7f
4 files changed
+155
-1
No files matched your search
+7
-1
@@ -1,5 +1,6 @@
|
||||
mod check;
|
||||
mod cli;
|
||||
mod cmd_add;
|
||||
mod cmd_create;
|
||||
mod cmd_new;
|
||||
mod cmd_run;
|
||||
@@ -31,6 +32,11 @@ fn main() {
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
Command::Add { .. } => eprintln!("add: not yet implemented"),
|
||||
Command::Add { capability } => {
|
||||
if let Err(e) = cmd_add::run(&capability) {
|
||||
eprintln!("error: {e}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user