(r taskListRow)
| 508 | } |
| 509 | |
| 510 | func dueColor(r taskListRow) string { |
| 511 | if r.DueInDays == nil { |
| 512 | return "" |
| 513 | } |
| 514 | if *r.DueInDays < 0 { |
| 515 | return listfmt.Red |
| 516 | } |
| 517 | if *r.DueInDays == 0 { |
| 518 | return listfmt.Yellow |
| 519 | } |
| 520 | return "" |
| 521 | } |
| 522 | |
| 523 | // notesCell builds the trailing NOTES column in table output. Each fragment |
| 524 | // is colored independently so the row reads well at a glance. waitMax > 0 |