fxkit 0.1.2

Useful utilities for writting Rust CLI tools
Documentation
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)
}