pub fn command_on_path(program: &str, path_var: Option<&str>) -> bool
Whether program is runnable: an explicit path (contains a separator) that exists, or a bare name found in one of PATH’s directories.
program
PATH