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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".