Skip to main content

resolve_command

Function resolve_command 

Source
pub fn resolve_command(
    command: &str,
    folders: &[String],
    work_dir: Option<&Path>,
) -> Result<Option<PathBuf>, String>
Expand description

The full path of command in the first of folders that holds it, or None when folders is empty (resolve through PATH as usual).