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§

source

fn output_checked(&mut self) -> Result<Output, CommandError>

Same as Command::output() but will treat non-success status of the Command as an error.

source

fn log(&mut self) -> &mut Self

Print the command to be executed

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CommandExt for Command

Implementors§