pub fn resolve_binary(
name: &str,
env_override: Option<&str>,
) -> Result<PathBuf, RunnerError>Expand description
Resolve a binary path by name, optionally using an environment variable override
Resolution order:
- If
env_overrideisSome, use that value as the path - Otherwise, search
PATHusingwhich
§Errors
Returns RunnerError if the binary cannot be found.