pub fn resolve_command_on_path(cmd: &str) -> Option<PathBuf>Expand description
What: Resolve an executable on PATH or by explicit path.
Inputs:
cmd: Program basename or path containing a path separator.
Output:
Some(path)for the first executable match; otherwiseNone.
Details:
- When
cmdcontains a path separator, only that path is checked. - Otherwise, each
PATHdirectory is searched in order.