Trait fixture::utils::CommandExt
source · pub trait CommandExt {
// Required methods
fn output_checked(&mut self) -> Result<Output, CommandError>;
fn log(&mut self) -> &mut Self;
}
Expand description
Extension trait for utilities on std::process::Command
Required Methods§
sourcefn output_checked(&mut self) -> Result<Output, CommandError>
fn output_checked(&mut self) -> Result<Output, CommandError>
Same as Command::output() but will treat non-success status of the Command as an error.
Object Safety§
This trait is not object safe.