MCPcopy Index your code
hub / github.com/callstack/agent-device / usageForCommand

Function usageForCommand

src/cli/parser/args.ts:351–353  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

349}
350
351export function usageForCommand(command: string): string | null {
352 return buildCommandUsageText(normalizeCommandAlias(command));
353}
354
355function normalizeCommandAlias(command: string): string {
356 if (command === 'long-press') return 'longpress';

Callers 3

runCliFunction · 0.90
args.test.tsFile · 0.90
perf-args.test.tsFile · 0.90

Calls 2

buildCommandUsageTextFunction · 0.90
normalizeCommandAliasFunction · 0.85

Tested by

no test coverage detected