diff --git a/lib/cli/src/commands/add.rs b/lib/cli/src/commands/add.rs index eb331c23b8c..f52964936f3 100644 --- a/lib/cli/src/commands/add.rs +++ b/lib/cli/src/commands/add.rs @@ -41,21 +41,18 @@ impl Add { let bindings = self.lookup_bindings(®istry)?; let mut cmd = self.target()?.command(&bindings)?; + cmd.stdin(Stdio::null()) + .stdout(Stdio::inherit()) + .stderr(Stdio::inherit()); - #[cfg(feature = "debug")] - log::debug!("Running {cmd:?}"); - - let status = cmd - .stdin(Stdio::null()) - .stdout(Stdio::piped()) - .stderr(Stdio::piped()) - .status() - .with_context(|| { - format!( - "Unable to start \"{:?}\". Is it installed?", - cmd.get_program() - ) - })?; + println!("Running: {cmd:?}"); + + let status = cmd.status().with_context(|| { + format!( + "Unable to start \"{:?}\". Is it installed?", + cmd.get_program() + ) + })?; anyhow::ensure!(status.success(), "Command failed: {:?}", cmd); @@ -63,8 +60,7 @@ impl Add { } fn lookup_bindings(&self, registry: &str) -> Result, Error> { - #[cfg(feature = "debug")] - log::debug!("Querying WAPM for the bindings packages"); + println!("Querying WAPM for package bindings"); let mut bindings_to_add = Vec::new(); let language = self.target()?.language();