(w io.Writer, label, value string, r *lipgloss.Renderer)
| 388 | } |
| 389 | |
| 390 | func printStatusOptionalField(w io.Writer, label, value string, r *lipgloss.Renderer) { |
| 391 | if value == "" { |
| 392 | return |
| 393 | } |
| 394 | var colored string |
| 395 | switch label { |
| 396 | case "Priority": |
| 397 | colored = formatPriority(value, r) |
| 398 | case "Effort": |
| 399 | colored = formatEffort(value, r) |
| 400 | default: |
| 401 | colored = value |
| 402 | } |
| 403 | fmt.Fprintf(w, "%s %s\n", formatLabel(label+":", r), colored) |
| 404 | } |
no test coverage detected