(status string)
| 476 | } |
| 477 | |
| 478 | func formatStatusText(status string) string { |
| 479 | status = strings.TrimSpace(status) |
| 480 | if status == "" { |
| 481 | return api.StringNA |
| 482 | } |
| 483 | |
| 484 | return strings.ToUpper(status[:1]) + status[1:] |
| 485 | } |
| 486 | |
| 487 | func statusColorFor(status string) tcell.Color { |
| 488 | switch strings.ToLower(status) { |