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

Function run

__tests__/cli-index-explicit-path.test.ts:19–26  ·  view source on GitHub ↗
(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

17const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
18
19function run(cwd: string, args: string[]) {
20 const r = spawnSync(process.execPath, [BIN, ...args], {
21 cwd,
22 encoding: 'utf-8',
23 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' },
24 });
25 return { status: r.status, out: (r.stdout ?? '') + (r.stderr ?? '') };
26}
27
28describe('codegraph index <path> (#1524)', () => {
29 let root: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected