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

Method readmePaneView

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

Source from the content-addressed store, hash-verified

718}
719
720func (m *browseModel) readmePaneView() string {
721 style := lipgloss.NewStyle().
722 Border(lipgloss.NormalBorder()).
723 Width(m.readme.Width() + 2).
724 Height(m.readme.Height() + 2)
725 if m.colors.Enabled {
726 style = style.BorderForeground(lipgloss.Color("5"))
727 }
728 return style.Render(m.readme.View())
729}
730
731func (m *browseModel) mainHeight() int {
732 footerHeight := strings.Count(m.footerView(), "\n") + 1

Callers 2

ViewMethod · 0.95
mainContentMethod · 0.95

Calls 2

RenderMethod · 0.65
ViewMethod · 0.65

Tested by

no test coverage detected