add logging
This commit is contained in:
@@ -16,7 +16,7 @@ pub fn execute_cmd() -> Command {
|
||||
}
|
||||
|
||||
pub async fn execute_subcommand(args: &ArgMatches) -> eyre::Result<()> {
|
||||
let action = args
|
||||
let _action = args
|
||||
.get_one::<String>("action")
|
||||
.ok_or(eyre::anyhow!("--action is required"))?;
|
||||
|
||||
|
@@ -27,6 +27,7 @@ impl OctopushCli {
|
||||
|
||||
match matches.subcommand() {
|
||||
Some(("execute", execute_sub)) => {
|
||||
tracing::debug!("executing subcommand 'execute'");
|
||||
commands::execute::execute_subcommand(execute_sub).await?;
|
||||
}
|
||||
Some(_) => return Err(eyre::anyhow!("unknown subcommand, please see --help")),
|
||||
|
Reference in New Issue
Block a user