Skip to main content

find_program

Function find_program 

Source
pub fn find_program(
    name: &str,
    env: &BTreeMap<String, String>,
    cwd: &AbsolutePath,
) -> Result<ProgramLookup, NoPathError>
Expand description

Look up the program name for a step whose environment is env and whose working directory is cwd, with search_program.

ยงErrors

Returns NoPathError when name has no / and env has no PATH.