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

Function cli

__tests__/pascal-implementation-tools.test.ts:84–92  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

82 }
83
84 function cli(args: string[]): string {
85 const result = spawnSync(process.execPath, [...WASM_RUNTIME_FLAGS, BIN, ...args, '-p', dir], {
86 encoding: 'utf-8',
87 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' },
88 timeout: 30_000,
89 });
90 expect(result.status, result.stderr).toBe(0);
91 return result.stdout;
92 }
93
94 function expectAfterDisconnectBody(text: string): void {
95 // A name or a trail entry is insufficient: these must be rendered source lines.

Calls

no outgoing calls

Tested by

no test coverage detected