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)
| 89 | // keep it bold-uncolored instead. |
| 90 | |
| 91 | func 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 | |
| 103 | func priorityColor(pri string) string { |
| 104 | switch pri { |
no outgoing calls
no test coverage detected