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

Function run

__tests__/cli-files-test-classification.test.ts:13–19  ·  view source on GitHub ↗
(command: string, args: string[])

Source from the content-addressed store, hash-verified

11 let dir: string;
12
13 function run(command: string, args: string[]): string {
14 return execFileSync(process.execPath, [BIN, command, ...args, '-p', dir], {
15 encoding: 'utf-8',
16 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' },
17 stdio: ['ignore', 'pipe', 'pipe'],
18 });
19 }
20
21 beforeAll(async () => {
22 dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-test-files-'));

Calls

no outgoing calls

Tested by

no test coverage detected