MCPcopy
hub / github.com/charmbracelet/glow / String

Method String

ui/stash.go:128–137  ·  view source on GitHub ↗

String returns a styled version of the status message appropriate for the given context.

()

Source from the content-addressed store, hash-verified

126// String returns a styled version of the status message appropriate for the
127// given context.
128func (s statusMessage) String() string {
129 switch s.status { //nolint:exhaustive
130 case subtleStatusMessage:
131 return dimGreenFg(s.message)
132 case errorStatusMessage:
133 return redFg(s.message)
134 default:
135 return greenFg(s.message)
136 }
137}
138
139type stashModel struct {
140 common *commonModel

Callers 5

handleFilteringMethod · 0.45
viewMethod · 0.45
headerViewMethod · 0.45
populatedViewMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected