fn execute(command: &mut Command) -> Result<Vec<u8>> {
    let output = command
        .output()
        .map_err(|e| Error::new(e).context("Failed to execute command"))?;
    Ok(output.stdout)
}
/// Executes a command, and returns the stdout as bytes.
Executes a command, and returns the stdout as bytes.
Executes a command and returns the stdout as bytes .
fn execute(command: &mut Command) -> Result<Vec<u8>> {
    let output = command
        .output()
        .map_err(|e| Error::new(e).context("Failed to execute command"))?;
    Ok(output.stdout)
}
fn execute ( command : & mut Command ) -> Result < Vec < u8 > > { let output = command . output ( ) . map_err ( | e | Error :: new ( e ) . context ( " " ) ) ? ; Ok ( output . stdout ) }
Executes a command, and returns the stdout as bytes.
Executes a command and returns the stdout as bytes .
command
&mut Command
command
&mut Command