Skip to main content

CommandRunner

Trait CommandRunner 

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

Runs external commands (git, package-manager, registry CLIs) on behalf of a domain, capturing their output. The single seam for shelling out — nothing in ossctl-core calls std::process::Command directly.

Required Methods§

Source

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

Run program with args in cwd, capturing stdout/stderr.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§