autoRunColor maps an autonomous-run status to a display color: running → cyan (in flight), completed → green, dead → red (needs eyes).
(status string)
| 496 | // autoRunColor maps an autonomous-run status to a display color: |
| 497 | // running → cyan (in flight), completed → green, dead → red (needs eyes). |
| 498 | func autoRunColor(status string) string { |
| 499 | switch status { |
| 500 | case "running": |
| 501 | return listfmt.Cyan |
| 502 | case "completed": |
| 503 | return listfmt.Green |
| 504 | case "dead": |
| 505 | return listfmt.Red |
| 506 | } |
| 507 | return "" |
| 508 | } |
| 509 | |
| 510 | func dueColor(r taskListRow) string { |
| 511 | if r.DueInDays == nil { |