Skip to main content

by_paths

Function by_paths 

Source
pub fn by_paths(
    title: &str,
    unit_dir: &str,
    judged: &dyn Fn(&str) -> bool,
) -> Lane
Expand description

The lane a task’s named paths give it (task_paths): planning when there is at least one and every one lies inside unit_dir (repository- or project-relative, a leading / read as the root) and none is a judged file — judged is asked with the path relative to unit_dir, without a trailing /; else code.