MCPcopy
hub / github.com/CodeGraphContext/CodeGraphContext / run

Function run

tests/unit/core/test_cgcignore_patterns.py:24–27  ·  view source on GitHub ↗

Run command and return output

(cmd)

Source from the content-addressed store, hash-verified

22 return BASE_TEST_DIR / f"test_{unique_id}"
23
24def run(cmd):
25 """Run command and return output"""
26 result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
27 return result.stdout + result.stderr
28
29
30def _is_neo4j_reachable(host: str = "localhost", port: int = 7687, timeout: float = 1.0) -> bool:

Callers 6

clean_db_completelyFunction · 0.70
delete_repo_from_dbFunction · 0.70
index_repoFunction · 0.70
query_all_filesFunction · 0.70
query_all_reposFunction · 0.70
query_files_for_repoFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected