Skip to main content

select_by_name

Function select_by_name 

Source
pub fn select_by_name<'t>(
    tasks: &'t [Task],
    name: &str,
) -> Result<&'t Task, NameError>
Expand description

The task of tasks, the tasks discovered under one directory in the default order, that kizz run <name> runs: the task named name whose kizz.md is the fewest directory levels below that directory.

ยงErrors

A NameError when name is not a valid task name, when no task has it, or when several tasks have it at the fewest levels.