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

Function query

__tests__/cli-query-command.test.ts:22–28  ·  view source on GitHub ↗
(cwd: string, extraArgs: string[])

Source from the content-addressed store, hash-verified

20const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
21
22function query(cwd: string, extraArgs: string[]): string {
23 return execFileSync(process.execPath, [BIN, 'query', 'parseToken', ...extraArgs, '-p', cwd], {
24 encoding: 'utf-8',
25 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' },
26 stdio: ['ignore', 'pipe', 'ignore'], // drop stderr (SQLite experimental warning)
27 });
28}
29
30describe('codegraph query — score rendering (#1045)', () => {
31 let tempDir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected