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

Method filterView

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

Source from the content-addressed store, hash-verified

690}
691
692func (m *browseModel) filterView() string {
693 label := m.colors.Bold("filter:")
694 if m.filtering {
695 label = m.colors.CyanBold("filter:")
696 }
697 filter := label + " " + m.filterInput.View()
698 if m.width <= 0 {
699 return filter
700 }
701 return renderListLine(filter, m.width)
702}
703
704func (m *browseModel) helpView() string {
705 lines := strings.Split(helpText, "\n")

Callers 1

ViewMethod · 0.95

Calls 4

renderListLineFunction · 0.85
BoldMethod · 0.80
CyanBoldMethod · 0.80
ViewMethod · 0.65

Tested by

no test coverage detected