String returns a styled version of the status message appropriate for the given context.
()
| 126 | // String returns a styled version of the status message appropriate for the |
| 127 | // given context. |
| 128 | func (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 | |
| 139 | type stashModel struct { |
| 140 | common *commonModel |
no outgoing calls
no test coverage detected