(commandName: string, schema: CommandSchema)
| 943 | } |
| 944 | |
| 945 | function 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 | |
| 953 | function renderUsageText(): string { |
| 954 | const header = `agent-device <command> [args] [--json] |
no test coverage detected