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

Function runContext

__tests__/cli-context-command.test.ts:27–33  ·  view source on GitHub ↗
(cwd: string, extraArgs: string[], taskParts: string[] = ['parseToken', 'expiry', 'handling'])

Source from the content-addressed store, hash-verified

25const ENV = { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' };
26
27function runContext(cwd: string, extraArgs: string[], taskParts: string[] = ['parseToken', 'expiry', 'handling']): string {
28 return execFileSync(process.execPath, [BIN, 'context', ...extraArgs, '-p', cwd, ...taskParts], {
29 encoding: 'utf-8',
30 env: ENV,
31 stdio: ['ignore', 'pipe', 'ignore'], // drop stderr (SQLite experimental warning)
32 });
33}
34
35describe('codegraph context — registered CLI command (#1611)', () => {
36 let tempDir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected