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

Function run_cli

tests/windows/test_daemon_lifecycle.py:37–46  ·  view source on GitHub ↗
(binary, cache, args, timeout=60, extra_env=None)

Source from the content-addressed store, hash-verified

35
36
37def run_cli(binary, cache, args, timeout=60, extra_env=None):
38 env = dict(os.environ)
39 env["CBM_CACHE_DIR"] = cache
40 # Daemon coordination is account-wide and CBM_CACHE_DIR does not move the
41 # rendezvous; a private CBM_RUNTIME_DIR per cache is what isolates a call
42 # from every other daemon on the account (and makes a cold call cold).
43 env["CBM_RUNTIME_DIR"] = runtime_for(cache)
44 if extra_env:
45 env.update(extra_env)
46 return subprocess.run([binary] + args, capture_output=True, timeout=timeout, env=env)
47
48
49def output_text(result):

Callers 1

mainFunction · 0.70

Calls 3

updateMethod · 0.80
runtime_forFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected