MCPcopy
hub / github.com/derailed/k9s / TextChanged

Method TextChanged

internal/view/details.go:100–108  ·  view source on GitHub ↗

TextChanged notifies the model changed.

(lines []string)

Source from the content-addressed store, hash-verified

98
99// TextChanged notifies the model changed.
100func (d *Details) TextChanged(lines []string) {
101 switch d.contentType {
102 case contentYAML:
103 d.text.SetText(colorizeYAML(d.app.Styles.Views().Yaml, strings.Join(lines, "\n")))
104 default:
105 d.text.SetText(strings.Join(lines, "\n"))
106 }
107 d.text.ScrollToBeginning()
108}
109
110// TextFiltered notifies when the filter changed.
111func (d *Details) TextFiltered(lines []string, matches fuzzy.Matches) {

Callers 1

StylesChangedMethod · 0.95

Calls 3

colorizeYAMLFunction · 0.85
SetTextMethod · 0.65
ViewsMethod · 0.45

Tested by

no test coverage detected