( command: CommandDefinition, widths: MenuColumnWidths, recentCommands: Record<string, number> )
| 545 | } |
| 546 | |
| 547 | export const buildMenuDisplayLabel = ( |
| 548 | command: CommandDefinition, |
| 549 | widths: MenuColumnWidths, |
| 550 | recentCommands: Record<string, number> |
| 551 | ): string => { |
| 552 | const recentMarker = recentCommands[command.key] ? '*' : ' ' |
| 553 | return `${recentMarker} ${command.category.padEnd(widths.categoryWidth)} ${command.name.padEnd(widths.nameWidth)} ${command.description}` |
| 554 | } |
| 555 | |
| 556 | const formatMenuLine = ( |
| 557 | command: CommandDefinition, |
no outgoing calls
no test coverage detected