pub fn binary_available(name: &str) -> boolExpand description
What: Check whether an external binary is available on the system.
Inputs:
name: Binary name to probe (for example,"paru"or"fakeroot").
Output:
truewhen spawning<name> --versionsucceeds,falseotherwise.
Details:
- Runs
<name> --versionwith stdin, stdout, and stderr attached to the null device, so nothing leaks to the terminal. - Only spawn success is checked (
output().is_ok()); the exit status is intentionally ignored, matching the historical capability probes.