pub type RunCommand = Arc<dyn Fn(&str, &[&str], &Environment) -> Result<String> + Send + Sync>;Expand description
A command runner: (command, args, environment) -> stdout. A spawn failure
(for example a missing binary) is an Err; any exit code, even non-zero, is
an Ok with the captured stdout. Injected so the resolver is deterministic
in tests.
Aliased Typeยง
pub struct RunCommand { /* private fields */ }