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

Function dueColor

internal/app/list.go:510–521  ·  view source on GitHub ↗
(r taskListRow)

Source from the content-addressed store, hash-verified

508}
509
510func 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

Callers 1

listTasksCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected