feat: improve CLI output with relative dates, rich feedback, and recurring task info
Add relative date formatting (today, tomorrow, in 3d, etc.) for list and detail views. Add structured feedback helpers for add/complete/delete operations showing display IDs and parsed modifiers. Change Complete() to return spawned recurring instance so callers can display recurrence info. Add AppendTask to working set for immediate display ID assignment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -196,7 +196,7 @@ func TestSpawnNextInstance(t *testing.T) {
|
||||
}
|
||||
|
||||
// Complete the instance (should spawn next)
|
||||
if err := instance1.Complete(); err != nil {
|
||||
if _, err := instance1.Complete(); err != nil {
|
||||
t.Fatalf("Failed to complete instance: %v", err)
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ func TestRecurrenceWithUntilDate(t *testing.T) {
|
||||
}
|
||||
|
||||
// Complete instance - should NOT spawn new one (past until date)
|
||||
if err := instance.Complete(); err != nil {
|
||||
if _, err := instance.Complete(); err != nil {
|
||||
t.Fatalf("Failed to complete instance: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user