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

Function formatMenuLine

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

Source from the content-addressed store, hash-verified

554}
555
556const formatMenuLine = (
557 command: CommandDefinition,
558 widths: MenuColumnWidths,
559 recentCommands: Record<string, number>
560): string => [buildMenuDisplayLabel(command, widths, recentCommands), command.command, command.key].join('\t')
561
562const ensureFzfIsInstalled = (): void => {
563 const result = spawnSync('sh', ['-lc', 'command -v fzf'], {

Callers 1

openMenuFunction · 0.85

Calls 1

buildMenuDisplayLabelFunction · 0.85

Tested by

no test coverage detected