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

Function autoRunColor

internal/app/list.go:498–508  ·  view source on GitHub ↗

autoRunColor maps an autonomous-run status to a display color: running → cyan (in flight), completed → green, dead → red (needs eyes).

(status string)

Source from the content-addressed store, hash-verified

496// autoRunColor maps an autonomous-run status to a display color:
497// running → cyan (in flight), completed → green, dead → red (needs eyes).
498func 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
510func dueColor(r taskListRow) string {
511 if r.DueInDays == nil {

Callers 1

autoCellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected