MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_binary_available

Function is_binary_available

crates/openshell-core/src/config.rs:143–148  ·  view source on GitHub ↗

Check if a binary is available on the system PATH.

(name: &str)

Source from the content-addressed store, hash-verified

141
142/// Check if a binary is available on the system PATH.
143fn 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
150fn is_podman_available() -> bool {
151 podman_socket_candidates()

Callers 1

is_docker_availableFunction · 0.85

Calls 1

successMethod · 0.45

Tested by

no test coverage detected