(ctor: CommandConstructor, path: string, format = '')
| 148 | } |
| 149 | |
| 150 | export function formatHelp(ctor: CommandConstructor, path: string, format = ''): string { |
| 151 | if (isStructured(format)) |
| 152 | return serialize(describeCommand(ctor, path), format) |
| 153 | |
| 154 | return formatHelpText(ctor, path) |
| 155 | } |
| 156 | |
| 157 | export function formatTopic(topic: HelpTopic, format = ''): string { |
| 158 | if (isStructured(format)) |
no test coverage detected