summaryrefslogtreecommitdiff
path: root/internal/askcli/formatter.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-22 22:21:44 +0200
committerPaul Buetow <paul@buetow.org>2026-03-22 22:21:44 +0200
commitf6ce62d4e5cefc4a7761bbb86f329ad08ba57570 (patch)
tree83d697fece9df55be204b1ed646cea3d6075f394 /internal/askcli/formatter.go
parent641e5f723215960713ad183d6d99619b64d69467 (diff)
ask: fix CLI commands to use correct Taskwarrior argument formatsv0.25.2
- handlePriority: use 'uuid:<uuid> modify priority:<level>' instead of 'priority <uuid> <level>' - handleTag: use 'uuid:<uuid> modify +/-tag' instead of 'tag <uuid> +/-tag' - handleDelete: use 'uuid:<uuid> delete' and pass stdin for confirmation - handleDenotate: use 'uuid:<uuid> denotate <pattern>' instead of 'denotate <uuid> <pattern>' - Add integration tests for all ask CLI subcommands - Update unit tests to match new command argument formats - createTask now uses task info to get UUID instead of export parsing - parseTaskInfoText fixed to split tags by ', ' instead of whitespace
Diffstat (limited to 'internal/askcli/formatter.go')
-rw-r--r--internal/askcli/formatter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/askcli/formatter.go b/internal/askcli/formatter.go
index e210dc7..41e3b3b 100644
--- a/internal/askcli/formatter.go
+++ b/internal/askcli/formatter.go
@@ -8,7 +8,7 @@ import (
func FormatTaskList(tasks []TaskExport) string {
var b strings.Builder
- io.WriteString(&b, "UUID | Priority | Status | Tags | Description | Urgency\n")
+ io.WriteString(&b, "Urgency | Priority | UUID | Status | Tags | Description\n")
io.WriteString(&b, strings.Repeat("-", 120)+"\n")
for _, t := range tasks {
tags := strings.Join(t.Tags, ",")
@@ -19,7 +19,7 @@ func FormatTaskList(tasks []TaskExport) string {
if len(desc) > 50 {
desc = desc[:47] + "..."
}
- fmt.Fprintf(&b, "%s | %s | %s | %s | %s | %.1f\n", t.UUID, t.Priority, t.Status, tags, desc, t.Urgency)
+ fmt.Fprintf(&b, "%.1f | %s | %s | %s | %s | %s\n", t.Urgency, t.Priority, t.UUID, t.Status, tags, desc)
}
return b.String()
}