MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / runCodegraph

Function runCodegraph

__tests__/index-command.test.ts:33–40  ·  view source on GitHub ↗
(args: string[], cwd: string)

Source from the content-addressed store, hash-verified

31}
32
33function runCodegraph(args: string[], cwd: string): string {
34 return execFileSync(process.execPath, [BIN, ...args], {
35 cwd,
36 encoding: 'utf-8',
37 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1' },
38 stdio: ['ignore', 'pipe', 'pipe'],
39 });
40}
41
42function graphCounts(dir: string): { nodes: number; edges: number } {
43 const cg = CodeGraph.openSync(dir);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected