diff --git a/src/main.rs b/src/main.rs index 720489e..14f6c6d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -226,6 +226,10 @@ impl Opts { fn emit_cargo_output(&self) -> bool { self.verbosity >= 2 } + + fn emit_cmd(&self) -> bool { + self.verbosity >= 1 + } } #[derive(Debug, thiserror::Error)] diff --git a/src/toolchains.rs b/src/toolchains.rs index a0a7266..2baa591 100644 --- a/src/toolchains.rs +++ b/src/toolchains.rs @@ -307,6 +307,10 @@ impl Toolchain { cmd.stdout(default_stdio()); cmd.stderr(default_stdio()); + if cfg.args.emit_cmd() { + eprintln!("Running `{cmd:?}`"); + } + let output = match cmd.output() { Ok(output) => output, Err(err) => {