summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-28 11:20:47 +0200
committerPaul Buetow <paul@buetow.org>2026-03-28 11:20:47 +0200
commitdbc9c19f8306aa095350abb2edef353c3c44d402 (patch)
tree2ed8424c56b854cef02029dc70c62d6e7ba132a3
parent1575c64b7d40f4a7b462609242bd72885157a383 (diff)
Rename "Pro" column header to "Pri" for Priority in ask command output
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--internal/askcli/formatter.go4
-rw-r--r--internal/askcli/formatter_test.go8
2 files changed, 6 insertions, 6 deletions
diff --git a/internal/askcli/formatter.go b/internal/askcli/formatter.go
index 734b4a5..d801f8a 100644
--- a/internal/askcli/formatter.go
+++ b/internal/askcli/formatter.go
@@ -39,7 +39,7 @@ type taskListWidths struct {
func taskListWidthsFor(tasks []TaskExport, aliases map[string]string, terminalWidth int) taskListWidths {
widths := taskListWidths{
Urgency: len("Urg"),
- Priority: len("Pro"),
+ Priority: len("Pri"),
ID: len("ID"),
Status: len("Status"),
Started: len("Started"),
@@ -63,7 +63,7 @@ func taskListWidthsFor(tasks []TaskExport, aliases map[string]string, terminalWi
func writeTaskListHeader(b *strings.Builder, widths taskListWidths) {
fmt.Fprintf(b, "%-*s | %-*s | %-*s | %-*s | %-*s | %-*s | %-*s\n",
widths.Urgency, "Urg",
- widths.Priority, "Pro",
+ widths.Priority, "Pri",
widths.ID, "ID",
widths.Status, "Status",
widths.Started, "Started",
diff --git a/internal/askcli/formatter_test.go b/internal/askcli/formatter_test.go
index 3a9239a..61ede0a 100644
--- a/internal/askcli/formatter_test.go
+++ b/internal/askcli/formatter_test.go
@@ -18,11 +18,11 @@ func TestFormatTaskList(t *testing.T) {
if len(lines) < 3 {
t.Fatalf("FormatTaskList produced too few lines: %d", len(lines))
}
- if !strings.Contains(lines[0], "ID") || !strings.Contains(lines[0], "Pro") {
- t.Fatalf("header missing ID or Pro column: %s", lines[0])
+ if !strings.Contains(lines[0], "ID") || !strings.Contains(lines[0], "Pri") {
+ t.Fatalf("header missing ID or Pri column: %s", lines[0])
}
if strings.Contains(lines[0], "Priority") {
- t.Fatalf("header should use compact Pro label: %s", lines[0])
+ t.Fatalf("header should use compact Pri label: %s", lines[0])
}
if !strings.Contains(lines[0], "Started") {
t.Fatalf("header missing Started column: %s", lines[0])
@@ -65,7 +65,7 @@ func TestFormatTaskList_AlignsHeaderAndSeparator(t *testing.T) {
widths := taskListWidthsFor(tasks, aliases, 0)
wantHeader := fmt.Sprintf("%-*s | %-*s | %-*s | %-*s | %-*s | %-*s | %-*s",
widths.Urgency, "Urg",
- widths.Priority, "Pro",
+ widths.Priority, "Pri",
widths.ID, "ID",
widths.Status, "Status",
widths.Started, "Started",