MCPcopy
hub / github.com/pterm/pterm / renderFinishedMenu

Method renderFinishedMenu

interactive_select_printer.go:317–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315}
316
317func (p InteractiveSelectPrinter) renderFinishedMenu() string {
318 var content string
319 content += Sprintf("%s: %s\n", p.text, p.fuzzySearchString)
320 content += Sprintf(" %s %s\n", p.renderSelector(), p.result)
321
322 return content
323}
324
325func (p InteractiveSelectPrinter) renderSelector() string {
326 return p.SelectorStyle.Sprint(p.Selector)

Callers 1

ShowMethod · 0.95

Calls 2

renderSelectorMethod · 0.95
SprintfFunction · 0.85

Tested by

no test coverage detected