Skip to main content

require_tool

Function require_tool 

Source
pub fn require_tool(tool: &str) -> String
Expand description

Build a POSIX precondition that checks whether tool is on PATH.

The resulting command exits 0 when the tool is available and non-zero otherwise. Used by per-language defaults so a missing tool causes a graceful warn-and-skip rather than a hard failure.