MCPcopy Create free account
hub / github.com/Facets-cloud/flow / statusColor

Function statusColor

internal/app/list.go:91–101  ·  view source on GitHub ↗

Color palette. Red is reserved for anomaly signals (overdue / stale). "high" priority is the dominant active state for daily users, so coloring it red turns every row into a wall of red and defeats the signal — keep it bold-uncolored instead.

(status string)

Source from the content-addressed store, hash-verified

89// keep it bold-uncolored instead.
90
91func statusColor(status string) string {
92 switch status {
93 case "in-progress":
94 return listfmt.Green
95 case "backlog":
96 return listfmt.Yellow
97 case "done":
98 return listfmt.Dim
99 }
100 return ""
101}
102
103func priorityColor(pri string) string {
104 switch pri {

Callers 2

listTasksCmdFunction · 0.85
listRunsCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected