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

Function runCodegraph

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected