MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / run

Function run

__tests__/cli-implementations.test.ts:26–32  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

24}
25
26function run(args: string[]) {
27 return spawnSync(process.execPath, [BIN, 'implementations', '-p', projectRoot, ...args], {
28 encoding: 'utf-8',
29 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' },
30 timeout: 30_000,
31 });
32}
33
34function json(args: string[]) {
35 const result = run([...args, '--json']);

Callers 2

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected