MCPcopy Create free account
hub / github.com/Firepal/stammer / test_command

Function test_command

stammer.py:47–52  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

45
46def test_command(cmd):
47 try:
48 subprocess.run(cmd, capture_output=True)
49 except FileNotFoundError as error:
50 logging.error(f"ERROR: '{cmd[0]}' not found. Please install it.")
51 raise error
52
53def file_type(path):
54 # is the file at path an audio file, video file, or neither?
55 return subprocess.run(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected