Skip to main content

tool_ladder

Function tool_ladder 

Source
pub fn tool_ladder(
    tool: &str,
    package: &str,
    manager: PackageManager,
    tb: &dyn Toolbox,
) -> Vec<(String, Vec<String>)>
Expand description

The programs to try, in order, to run tool (a binary of package, which may be pinned): the tool itself, then the runner that fetches it on demand when manager (or npx, for a manager with no runner) is on PATH. Each is a program name with its leading arguments.