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

Function run

__tests__/cli-cycles.test.ts:15–21  ·  view source on GitHub ↗
(cwd: string, ...args: string[])

Source from the content-addressed store, hash-verified

13const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
14
15function run(cwd: string, ...args: string[]) {
16 const res = spawnSync(process.execPath, [BIN, 'cycles', cwd, ...args], {
17 encoding: 'utf-8',
18 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' },
19 });
20 return { status: res.status, stdout: res.stdout, stderr: res.stderr };
21}
22
23async function indexProject(dir: string, files: Record<string, string>): Promise<void> {
24 for (const [rel, content] of Object.entries(files)) {

Callers 2

cli-cycles.test.tsFile · 0.70
joinedDuringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected