(commands: CommandDefinition[])
| 477 | const getFeaturedCommands = (): CommandDefinition[] => COMMANDS.filter((command) => command.featured) |
| 478 | |
| 479 | export const getMenuColumnWidths = (commands: CommandDefinition[]): MenuColumnWidths => ({ |
| 480 | categoryWidth: Math.max(...commands.map((command) => command.category.length)), |
| 481 | nameWidth: Math.max(...commands.map((command) => command.name.length)) |
| 482 | }) |
| 483 | |
| 484 | export const orderCommandsForMenu = ( |
| 485 | commands: CommandDefinition[], |
no test coverage detected