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

Function json

__tests__/cli-definition-grouping.test.ts:26–30  ·  view source on GitHub ↗
(command: Command, symbol = 'handle', args: string[] = [])

Source from the content-addressed store, hash-verified

24}
25
26function json(command: Command, symbol = 'handle', args: string[] = []) {
27 const result = runCli(command, symbol, [...args, '--json']);
28 expect(result.status, result.stderr).toBe(0);
29 return JSON.parse(result.stdout);
30}
31
32function resultKey(command: Command) {
33 return command === 'impact' ? 'affected' : command;

Callers 1

Calls 2

parseMethod · 0.80
runCliFunction · 0.70

Tested by

no test coverage detected