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

Function colorizeFieldValue

apps/cli/internal/cli/set.go:384–395  ·  view source on GitHub ↗
(field, value string, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

382}
383
384func colorizeFieldValue(field, value string, r *lipgloss.Renderer) string {
385 switch field {
386 case "status":
387 return formatStatus(value, r)
388 case "priority":
389 return formatPriority(value, r)
390 case "effort":
391 return formatEffort(value, r)
392 default:
393 return value
394 }
395}
396
397// runSetVerification runs verify checks if --verify is set and status is being set to completed.
398func runSetVerification(task *model.Task, req taskfile.UpdateRequest) error {

Callers 1

printSetConfirmationFunction · 0.85

Calls 3

formatStatusFunction · 0.85
formatPriorityFunction · 0.85
formatEffortFunction · 0.85

Tested by

no test coverage detected