MCPcopy Create free account
hub / github.com/cactus-compute/cactus / check_command

Function check_command

python/src/cli.py:91–93  ·  view source on GitHub ↗

Check if a command is available in PATH.

(cmd)

Source from the content-addressed store, hash-verified

89
90
91def check_command(cmd):
92 """Check if a command is available in PATH."""
93 return shutil.which(cmd) is not None
94
95
96def run_command(cmd, cwd=None, check=True):

Callers 4

check_libcurlFunction · 0.85
cmd_buildFunction · 0.85
cmd_build_pythonFunction · 0.85
_cmd_transcribe_androidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected