summaryrefslogtreecommitdiff
path: root/internal/askcli/dispatch_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-22 19:52:08 +0200
committerPaul Buetow <paul@buetow.org>2026-03-22 19:52:08 +0200
commit9a6f6c0b747cee47eb61220d94a5fb7aaadd0e2b (patch)
tree16fa1b8a4904ddfad1cedfebfd7bcf57fa1291b9 /internal/askcli/dispatch_test.go
parent23e9ab91c1e18f889eac4c0c5d5fd9daaeff7f0d (diff)
Implement 'ask urgency' subcommand: export tasks, sort by urgency descending, format as UUID table
Diffstat (limited to 'internal/askcli/dispatch_test.go')
-rw-r--r--internal/askcli/dispatch_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/askcli/dispatch_test.go b/internal/askcli/dispatch_test.go
index 0d06299..8631f4c 100644
--- a/internal/askcli/dispatch_test.go
+++ b/internal/askcli/dispatch_test.go
@@ -76,6 +76,9 @@ func TestDispatcher_AllSubcommandsReachExecutor(t *testing.T) {
calls := 0
d := NewDispatcher(&spyRunner{runFn: func(ctx context.Context, args []string, stdin io.Reader, stdout_, stderr_ io.Writer) (int, error) {
calls++
+ if args[0] == "export" {
+ io.WriteString(stdout_, "[]")
+ }
return 0, nil
}})
args := []string{sub}