From c016752e4f5d77ae5c5a01fa79f23e4c990390f6 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 31 Jan 2024 20:34:46 +0100 Subject: [PATCH] feat: trying std::process instead Signed-off-by: kjuulh --- crates/cuddle-ci/src/cuddle_x.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/cuddle-ci/src/cuddle_x.rs b/crates/cuddle-ci/src/cuddle_x.rs index 660609c..63a2a5a 100644 --- a/crates/cuddle-ci/src/cuddle_x.rs +++ b/crates/cuddle-ci/src/cuddle_x.rs @@ -17,16 +17,11 @@ impl CuddleX { } pub async fn run(&mut self) -> eyre::Result<(String, String, i32)> { - let mut cmd = tokio::process::Command::new("cuddle"); + let mut cmd = std::process::Command::new("cuddle"); - let cmd = cmd - .arg("x") - .arg(&self.command) - .args(&self.args) - .stdout(std::process::Stdio::inherit()) - .stderr(std::process::Stdio::inherit()); + let cmd = cmd.arg("x").arg(&self.command).args(&self.args); - let output = cmd.output().await?; + let output = cmd.output()?; Ok(( std::str::from_utf8(&output.stdout)?.to_string(),