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

Function runCodegraph

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

Source from the content-addressed store, hash-verified

11const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
12
13function runCodegraph(args: string[], cwd: string): string {
14 return execFileSync(process.execPath, [BIN, ...args], {
15 cwd,
16 encoding: 'utf8',
17 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1' },
18 stdio: ['ignore', 'pipe', 'pipe'],
19 });
20}
21
22function runCodegraphAsync(args: string[], cwd: string): Promise<string> {
23 return new Promise((resolve, reject) => {

Callers 1

cli-unlock.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected