Skip to main content

is_privilege_tool_available

Function is_privilege_tool_available 

Source
pub fn is_privilege_tool_available(tool: PrivilegeTool) -> bool
Expand description

What: Check whether a specific privilege tool is available on PATH.

Inputs:

  • tool: The tool to check.

Output:

  • true when the tool binary is executable on PATH.

Details:

  • Useful when the caller has a configured preference and wants to verify it.