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

Function cliNode

src/bin/codegraph.ts:417–419  ·  view source on GitHub ↗

Compact node shape retained by the CLI's existing JSON lists.

(node: Node)

Source from the content-addressed store, hash-verified

415
416/** Compact node shape retained by the CLI's existing JSON lists. */
417function cliNode(node: Node) {
418 return { name: node.name, kind: node.kind, filePath: node.filePath, startLine: node.startLine };
419}
420
421/** Call-site lines `codegraph callers` prints for one caller; `--json` lists them all. */
422const CLI_CALL_SITES_SHOWN = 10;

Callers 3

cliDefinitionFunction · 0.85
rowFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected