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

Function renderListLine

pkg/cmd/extension/browse/model.go:662–668  ·  view source on GitHub ↗
(line string, width int)

Source from the content-addressed store, hash-verified

660}
661
662func renderListLine(line string, width int) string {
663 if width <= 0 {
664 return line
665 }
666 line = ansi.Truncate(line, width, "")
667 return lipgloss.NewStyle().Width(width).Render(line)
668}
669
670func truncateLines(content string, width int) string {
671 if width <= 0 {

Callers 2

listViewMethod · 0.85
filterViewMethod · 0.85

Calls 1

RenderMethod · 0.65

Tested by

no test coverage detected