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

Method headerView

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

Source from the content-addressed store, hash-verified

679}
680
681func (m *browseModel) headerView() string {
682 header := m.colors.Bold(fmt.Sprintf("browsing %d gh extensions", len(m.entries)))
683 if m.width <= 0 {
684 return header
685 }
686 return lipgloss.NewStyle().
687 Width(m.width).
688 Align(lipgloss.Center).
689 Render(header)
690}
691
692func (m *browseModel) filterView() string {
693 label := m.colors.Bold("filter:")

Callers 1

ViewMethod · 0.95

Calls 2

BoldMethod · 0.80
RenderMethod · 0.65

Tested by

no test coverage detected