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

Function commandLabel

__tests__/child-process-windows-hide.test.ts:254–259  ·  view source on GitHub ↗
(call: ts.CallExpression, sf: ts.SourceFile)

Source from the content-addressed store, hash-verified

252}
253
254function commandLabel(call: ts.CallExpression, sf: ts.SourceFile): string {
255 const first = call.arguments[0];
256 if (!first) return '';
257 if (ts.isStringLiteralLike(first)) return `'${first.text}'`;
258 return first.getText(sf);
259}
260
261/** Every spawn in one file, and each one that isn't provably hidden. */
262function scanSource(rel: string, text: string): { seen: number; offenders: string[] } {

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected