1 2 3 4 5
use which::which; pub fn does_cmd_exist(command: &str) -> bool { which(command).map(|path| path.exists()).unwrap_or(false) }