From 2611b6c7f9ae2bfc1f36fba34cc45c9677ccfbe1 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 31 Jan 2024 20:32:38 +0100 Subject: [PATCH] feat: stderr pipes Signed-off-by: kjuulh --- crates/cuddle-ci/src/cuddle_x.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/cuddle_x.rs b/crates/cuddle-ci/src/cuddle_x.rs index 3eadcae..660609c 100644 --- a/crates/cuddle-ci/src/cuddle_x.rs +++ b/crates/cuddle-ci/src/cuddle_x.rs @@ -19,7 +19,12 @@ impl CuddleX { pub async fn run(&mut self) -> eyre::Result<(String, String, i32)> { let mut cmd = tokio::process::Command::new("cuddle"); - let cmd = cmd.arg("x").arg(&self.command).args(&self.args); + let cmd = cmd + .arg("x") + .arg(&self.command) + .args(&self.args) + .stdout(std::process::Stdio::inherit()) + .stderr(std::process::Stdio::inherit()); let output = cmd.output().await?;