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

Function runCodegraphAsync

__tests__/cli-unlock.test.ts:22–34  ·  view source on GitHub ↗
(args: string[], cwd: string)

Source from the content-addressed store, hash-verified

20}
21
22function runCodegraphAsync(args: string[], cwd: string): Promise<string> {
23 return new Promise((resolve, reject) => {
24 execFile(
25 process.execPath,
26 [BIN, ...args],
27 { cwd, encoding: 'utf8', env: { ...process.env, CODEGRAPH_NO_DAEMON: '1' } },
28 (error, stdout, stderr) => {
29 if (error) reject(new Error(`${error.message}\n${stderr}`));
30 else resolve(stdout);
31 },
32 );
33 });
34}
35
36describe('codegraph unlock — daemon artifact recovery (#1553)', () => {
37 let tempDir: string;

Callers 1

cli-unlock.test.tsFile · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected