ColorizedStatus returns a status icon + status text with appropriate color.
(status string)
| 64 | |
| 65 | // ColorizedStatus returns a status icon + status text with appropriate color. |
| 66 | func ColorizedStatus(status string) string { |
| 67 | icon := statusIconChar(status) |
| 68 | c := StatusColor(status) |
| 69 | return c.Sprintf("%s %s", icon, status) |
| 70 | } |
| 71 | |
| 72 | // statusIconChar returns just the icon character for a status (no text, no color). |
| 73 | func statusIconChar(status string) string { |
no test coverage detected