pub fn resolve_program(program: &str) -> PathBufExpand description
program found on PATH, or program unchanged when it is a path or is not found. On Windows a bare name
is also tried as .exe, .cmd and .bat: Command::new("npm") finds only npm.exe, and npm, Claude Code
and Codex installed through npm are .cmd shims.