MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ColorizedStatus

Function ColorizedStatus

internal/cli/format.go:66–70  ·  view source on GitHub ↗

ColorizedStatus returns a status icon + status text with appropriate color.

(status string)

Source from the content-addressed store, hash-verified

64
65// ColorizedStatus returns a status icon + status text with appropriate color.
66func 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).
73func statusIconChar(status string) string {

Callers 3

statusCmdFunction · 0.92
StatusIconFunction · 0.85
renderItemTableFunction · 0.85

Calls 2

statusIconCharFunction · 0.85
StatusColorFunction · 0.85

Tested by

no test coverage detected