Skip to main content

command_available

Function command_available 

Source
pub fn command_available(cmd: &str) -> bool
Expand description

Check if a command is available on the system via PATH lookup. On Windows, tries common executable extensions (.exe, .cmd, .bat, .ps1, .com) since executables require an extension to be found.