Skip to main content

output

Function output 

Source
pub fn output(command: &mut Command) -> Result<Output>
Expand description

Convenience: spawn and collect full output (stdout + stderr).

Mirrors Command::output semantics by unconditionally setting stdout / stderr to piped and stdin to null. Callers that need different stdio (e.g. inherited stdin for interactive prompts) must use ScopedChild::spawn directly and drive the wait themselves.