pub fn command_on_path(cmd: &str) -> boolExpand description
What: Determine whether a command is available on the Unix PATH.
Input:
cmd: Program name or explicit path to inspect.
Output:
truewhen an executable file is found and marked executable.
Details:
- Accepts explicit paths (containing path separators) and honours Unix permission bits.
- Falls back to scanning
PATH, and on Windows builds respectsPATHEXTas well.