Skip to main content

search_step_program

Function search_step_program 

Source
pub fn search_step_program(
    name: &str,
    env: &BTreeMap<String, String>,
    cwd: &AbsolutePath,
    error_name: impl Fn(i32) -> String,
) -> Result<ProgramSearch, NoPathError>
Expand description

Look up the program name for a step whose environment is env and whose working directory is cwd, as find_program does, keeping the outcome of each checked location, whose error error_name names, for the observation report of kizz run --output.

ยงErrors

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