Skip to main content

CommandRunner

Trait CommandRunner 

Source
pub trait CommandRunner: Send + Sync {
    // Required method
    fn run(&self, program: &str, args: &[String]) -> Result<CommandOutput>;
}
Expand description

Runs a command line for a manager. The seam: replace it to observe or fake the OS tools.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§