MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / buildMenuDisplayLabel

Function buildMenuDisplayLabel

scripts/make-menu.ts:547–554  ·  view source on GitHub ↗
(
  command: CommandDefinition,
  widths: MenuColumnWidths,
  recentCommands: Record<string, number>
)

Source from the content-addressed store, hash-verified

545}
546
547export 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
556const formatMenuLine = (
557 command: CommandDefinition,

Callers 2

make-menu.test.tsFile · 0.90
formatMenuLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected