MCPcopy Create free account
hub / github.com/driangle/taskmd / printStatusOptionalField

Function printStatusOptionalField

apps/cli/internal/cli/status.go:390–404  ·  view source on GitHub ↗
(w io.Writer, label, value string, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

388}
389
390func 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}

Callers 1

outputStatusTextFunction · 0.85

Calls 3

formatPriorityFunction · 0.85
formatEffortFunction · 0.85
formatLabelFunction · 0.85

Tested by

no test coverage detected