diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-22 21:22:04 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-22 21:22:04 +0200 |
| commit | 641e5f723215960713ad183d6d99619b64d69467 (patch) | |
| tree | bb1dfd79fd9789f2e9a2625123f69e3f784d4984 /internal/askcli/dispatch_test.go | |
| parent | 00ff404454c3fc04e13e39992d6dd1200bad9191 (diff) | |
ask: add ready command to list READY tasks (not blocked)
handleReady passes +READY filter to show actionable tasks only.
help text updated. tests updated.
Diffstat (limited to 'internal/askcli/dispatch_test.go')
| -rw-r--r-- | internal/askcli/dispatch_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/askcli/dispatch_test.go b/internal/askcli/dispatch_test.go index b1aa820..005a88c 100644 --- a/internal/askcli/dispatch_test.go +++ b/internal/askcli/dispatch_test.go @@ -54,7 +54,7 @@ func TestDispatcher_LongHelp(t *testing.T) { var stdout bytes.Buffer d.Dispatch(context.Background(), []string{"help"}, nil, &stdout, io.Discard) output := stdout.String() - for _, sub := range []string{"add", "list", "all", "info", "annotate", "start", "stop", "done", "priority", "tag", "dep", "urgency", "modify", "denotate", "delete", "export"} { + for _, sub := range []string{"add", "list", "all", "ready", "info", "annotate", "start", "stop", "done", "priority", "tag", "dep", "urgency", "modify", "denotate", "delete", "export"} { if !strings.Contains(output, "ask "+sub) { t.Errorf("help missing subcommand: ask %s", sub) } @@ -76,6 +76,7 @@ func TestDispatcher_AllSubcommandsReachExecutor(t *testing.T) { "dep": {"dep", "list", "test-uuid"}, "list": {"list"}, "all": {"all"}, + "ready": {"ready"}, "urgency": {"urgency"}, "info": {"info", "test-uuid"}, "add": {"add", "new task description"}, |
