MCPcopy Create free account
hub / github.com/1buran/rHttp / getStatusText

Method getStatusText

statusbar.go:98–110  ·  view source on GitHub ↗

Get status message.

(w int)

Source from the content-addressed store, hash-verified

96
97// Get status message.
98func (s *StatusBar) getStatusText(w int) string {
99 var style lipgloss.Style
100 // apply style
101 switch s.status {
102 case statusInfo:
103 style = statusTextInfo
104 case statusWarning:
105 style = statusTextWarning
106 case statusError:
107 style = statusTextError
108 }
109 return style.Render(s.getText(w))
110}
111
112// Set status.
113func (s *StatusBar) setStatus(status int, text string) {

Callers 1

FormatStatusBarMethod · 0.95

Calls 1

getTextMethod · 0.95

Tested by

no test coverage detected