Skip to main content

CommandRunner

Trait CommandRunner 

Source
pub trait CommandRunner: Send + Sync {
    // Required methods
    fn run_capture(
        &self,
        program: &str,
        args: &[String],
    ) -> Result<CommandOutput>;
    fn run_capture_with_input(
        &self,
        program: &str,
        args: &[String],
        input: &str,
    ) -> Result<CommandOutput>;
    fn run_inherit(
        &self,
        program: &str,
        args: &[String],
    ) -> Result<CommandStatus>;
}

Required Methods§

Source

fn run_capture(&self, program: &str, args: &[String]) -> Result<CommandOutput>

Source

fn run_capture_with_input( &self, program: &str, args: &[String], input: &str, ) -> Result<CommandOutput>

Source

fn run_inherit(&self, program: &str, args: &[String]) -> Result<CommandStatus>

Implementors§