mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 05:48:45 +00:00
Stdout/stderr should be inherited
This commit is contained in:
@@ -41,20 +41,18 @@ impl Add {
|
|||||||
let bindings = self.lookup_bindings(®istry)?;
|
let bindings = self.lookup_bindings(®istry)?;
|
||||||
|
|
||||||
let mut cmd = self.target()?.command(&bindings)?;
|
let mut cmd = self.target()?.command(&bindings)?;
|
||||||
|
cmd.stdin(Stdio::null())
|
||||||
|
.stdout(Stdio::inherit())
|
||||||
|
.stderr(Stdio::inherit());
|
||||||
|
|
||||||
println!("Running: {cmd:?}");
|
println!("Running: {cmd:?}");
|
||||||
|
|
||||||
let status = cmd
|
let status = cmd.status().with_context(|| {
|
||||||
.stdin(Stdio::null())
|
format!(
|
||||||
.stdout(Stdio::piped())
|
"Unable to start \"{:?}\". Is it installed?",
|
||||||
.stderr(Stdio::piped())
|
cmd.get_program()
|
||||||
.status()
|
)
|
||||||
.with_context(|| {
|
})?;
|
||||||
format!(
|
|
||||||
"Unable to start \"{:?}\". Is it installed?",
|
|
||||||
cmd.get_program()
|
|
||||||
)
|
|
||||||
})?;
|
|
||||||
|
|
||||||
anyhow::ensure!(status.success(), "Command failed: {:?}", cmd);
|
anyhow::ensure!(status.success(), "Command failed: {:?}", cmd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user