9 lines
279 B
Rust
9 lines
279 B
Rust
use std::process::Output;
|
|
use tokio::process::Command;
|
|
|
|
pub async fn command_output(command: &mut Command) -> std::io::Result<Output> {
|
|
log::debug!("Shell command {:?}", command);
|
|
let output = command.output().await;
|
|
log::debug!("Output: {:?}", output);
|
|
output
|
|
}
|