add logging
This commit is contained in:
@@ -9,6 +9,7 @@ edition = "2021"
|
||||
octopush_infra = { path = "../octopush_infra" }
|
||||
octopush_core = { path = "../octopush_core" }
|
||||
|
||||
clap = { version = "4.0.18" }
|
||||
|
||||
eyre = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
|
||||
clap = { version = "4.0.18" }
|
||||
|
@@ -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