MCPcopy Create free account
hub / github.com/cli/cli / helpView

Method helpView

pkg/cmd/extension/browse/model.go:704–718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

702}
703
704func (m *browseModel) helpView() string {
705 lines := strings.Split(helpText, "\n")
706 for i, line := range lines {
707 switch line {
708 case "Application", "Navigation", "Extension Management", "Filtering", "Readmes":
709 lines[i] = m.colors.Bold(line)
710 default:
711 key, description, ok := strings.Cut(line, ":")
712 if ok && key != "" {
713 lines[i] = m.colors.Bold(key) + ":" + description
714 }
715 }
716 }
717 return strings.Join(lines, "\n")
718}
719
720func (m *browseModel) readmePaneView() string {
721 style := lipgloss.NewStyle().

Callers 1

ViewMethod · 0.95

Calls 2

BoldMethod · 0.80
JoinMethod · 0.80

Tested by

no test coverage detected