Skip to main content

resolve_program

Function resolve_program 

Source
pub fn resolve_program(program: &str) -> PathBuf
Expand 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.