MCPcopy
hub / github.com/astral-sh/python-build-standalone / run_command

Function run_command

check.py:14–20  ·  view source on GitHub ↗
(command: list[str])

Source from the content-addressed store, hash-verified

12
13
14def run_command(command: list[str]) -> int:
15 print("$ " + " ".join(command))
16 returncode = subprocess.run(
17 command, stdout=sys.stdout, stderr=sys.stderr
18 ).returncode
19 print()
20 return returncode
21
22
23def run():

Callers 1

runFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected