return stdout stderr

This commit is contained in:
Dongdong Zhou 2023-02-12 19:26:27 +00:00
parent ca80cec008
commit 5ee7ede0bb
1 changed files with 2 additions and 0 deletions

View File

@ -832,6 +832,8 @@ pub fn process_request(
.output()?;
Ok(serde_json::to_value(ExecuteProcessResult {
success: output.status.success(),
stdout: Some(output.stdout),
stderr: Some(output.stderr),
})?)
}
_ => Err(anyhow!("request not supported")),