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

Function printSetConfirmation

apps/cli/internal/cli/set.go:368–382  ·  view source on GitHub ↗
(task *model.Task, changes []changeEntry)

Source from the content-addressed store, hash-verified

366}
367
368func printSetConfirmation(task *model.Task, changes []changeEntry) {
369 r := getRenderer()
370 fmt.Printf("Updated task %s (%s):\n", formatTaskID(task.ID, r), task.Title)
371 for _, c := range changes {
372 old := c.oldValue
373 if old == "" {
374 old = "(unset)"
375 }
376 fmt.Printf(" %s: %s -> %s\n",
377 formatLabel(c.field, r),
378 formatDim(old, r),
379 colorizeFieldValue(c.field, c.newValue, r),
380 )
381 }
382}
383
384func colorizeFieldValue(field, value string, r *lipgloss.Renderer) string {
385 switch field {

Callers 1

runSetFunction · 0.85

Calls 5

getRendererFunction · 0.85
formatTaskIDFunction · 0.85
formatLabelFunction · 0.85
formatDimFunction · 0.85
colorizeFieldValueFunction · 0.85

Tested by

no test coverage detected