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

Function buildCommandListUsage

src/cli/parser/cli-help.ts:945–951  ·  view source on GitHub ↗
(commandName: string, schema: CommandSchema)

Source from the content-addressed store, hash-verified

943}
944
945function buildCommandListUsage(commandName: string, schema: CommandSchema): string {
946 if (schema.listUsageOverride) return schema.listUsageOverride;
947 const positionals = (schema.positionalArgs ?? []).map((arg) =>
948 formatCommandListArg(commandName, schema, arg),
949 );
950 return [commandName, ...positionals].join(' ');
951}
952
953function renderUsageText(): string {
954 const header = `agent-device <command> [args] [--json]

Callers 1

renderUsageTextFunction · 0.85

Calls 1

formatCommandListArgFunction · 0.85

Tested by

no test coverage detected