(options: readonly commander.Option[], title: string)
| 14 | } |
| 15 | |
| 16 | function generateOptionsMarkdown(options: readonly commander.Option[], title: string): string { |
| 17 | return options.length |
| 18 | ? `## ${title} |
| 19 | |
| 20 | ${options |
| 21 | .map( |
| 22 | option => `- \`${option.flags}\`: ${option.description} |
| 23 | `, |
| 24 | ) |
| 25 | .join('')} |
| 26 | ` |
| 27 | : ''; |
| 28 | } |
| 29 | |
| 30 | function generateSubcommandsMarkdown( |
| 31 | commandName: string, |
no test coverage detected