Skip to main content

CommandRunner

Trait CommandRunner 

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

Abstraction over process execution.

FilesystemDataStore uses this to run commands in run_and_record. Tests can provide a mock that records calls without spawning processes.

Required Methods§

Source

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

Implementors§