MCPcopy Create free account
hub / github.com/SunOner/sunone_aimbot / _run_command

Function _run_command

helper_api.py:426–429  ·  view source on GitHub ↗
(command: list[str])

Source from the content-addressed store, hash-verified

424
425
426def _run_command(command: list[str]) -> tuple[bool, str]:
427 result = subprocess.run(command, cwd=PROJECT_DIR, capture_output=True, text=True)
428 output = "\n".join([result.stdout.strip(), result.stderr.strip()]).strip()
429 return result.returncode == 0, output
430
431
432def _format_command(command: list[str]) -> str:

Callers 2

api_reinstall_torchFunction · 0.85
api_reinstall_tensorrtFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected