(
commands: Array<{ name: string; schema: CommandSchema; usage: string }>,
)
| 1040 | } |
| 1041 | |
| 1042 | function renderCommandSection( |
| 1043 | commands: Array<{ name: string; schema: CommandSchema; usage: string }>, |
| 1044 | ): string { |
| 1045 | return renderAlignedSection( |
| 1046 | 'Commands:', |
| 1047 | commands.map((command) => ({ |
| 1048 | label: command.usage, |
| 1049 | description: command.schema.summary ?? command.schema.helpDescription, |
| 1050 | })), |
| 1051 | ); |
| 1052 | } |
| 1053 | |
| 1054 | export function buildCommandUsageText(commandName: string): string | null { |
| 1055 | const topicHelp = buildHelpTopicUsageText(commandName); |
no test coverage detected