Check if a binary is available on the system PATH.
(name: &str)
| 141 | |
| 142 | /// Check if a binary is available on the system PATH. |
| 143 | fn is_binary_available(name: &str) -> bool { |
| 144 | Command::new(name) |
| 145 | .arg("--version") |
| 146 | .output() |
| 147 | .is_ok_and(|output| output.status.success()) |
| 148 | } |
| 149 | |
| 150 | fn is_podman_available() -> bool { |
| 151 | podman_socket_candidates() |
no test coverage detected