MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / run_cli

Function run_cli

tests/windows/test_hook_augment.py:42–47  ·  view source on GitHub ↗
(binary, cache, args, stdin=None, timeout=120)

Source from the content-addressed store, hash-verified

40
41
42def run_cli(binary, cache, args, stdin=None, timeout=120):
43 env = dict(os.environ)
44 env["CBM_CACHE_DIR"] = cache
45 env["CBM_RUNTIME_DIR"] = os.path.join(cache, "runtime")
46 return subprocess.run([binary] + args, capture_output=True, timeout=timeout,
47 env=env, input=stdin)
48
49
50def main():

Callers 1

mainFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected