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

Function status

__tests__/status-language-coverage.test.ts:59–65  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

57 }
58
59 function status(...args: string[]): { code: number | null; stdout: string; stderr: string } {
60 const run = spawnSync(process.execPath, [BIN, 'status', dir, ...args], {
61 encoding: 'utf-8',
62 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', NO_COLOR: '1' },
63 });
64 return { code: run.status, stdout: run.stdout, stderr: run.stderr };
65 }
66
67 function statusJson(...args: string[]): { code: number | null; json: Record<string, any> } {
68 const { code, stdout } = status('--json', ...args);

Callers 2

statusJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected