colorizeColumn returns the column value with color formatting applied.
(task *model.Task, column string, r *lipgloss.Renderer)
| 345 | |
| 346 | // colorizeColumn returns the column value with color formatting applied. |
| 347 | func colorizeColumn(task *model.Task, column string, r *lipgloss.Renderer) string { |
| 348 | value := getColumnValue(task, column) |
| 349 | switch column { |
| 350 | case "id": |
| 351 | return formatTaskID(value, r) |
| 352 | case "status": |
| 353 | return formatStatus(value, r) |
| 354 | case "priority": |
| 355 | return formatPriority(value, r) |
| 356 | case "effort": |
| 357 | return formatEffort(value, r) |
| 358 | default: |
| 359 | return value |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | // reportScanWarnings prints scan errors to stderr when verbose mode is enabled. |
| 364 | func reportScanWarnings(result *scanner.ScanResult, flags GlobalFlags) { |
no test coverage detected