feat: trying std::process instead
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-01-31 20:34:46 +01:00
parent 2611b6c7f9
commit c016752e4f
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -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(),