pub fn run_command(
spec: &CommandSpec,
log_path: Option<&Utf8Path>,
) -> Result<CommandOutput, AppleError>Expand description
Run one command without a shell, capture both streams, enforce a timeout, and optionally log it.
ยงErrors
Returns AppleError when the command cannot start, times out, exits
unsuccessfully, its output cannot be read, or its redacted log cannot be written.