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.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.go')
| -rw-r--r-- | internal/askcli/dispatch.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/askcli/dispatch.go b/internal/askcli/dispatch.go index d24fec8..42097c5 100644 --- a/internal/askcli/dispatch.go +++ b/internal/askcli/dispatch.go @@ -38,6 +38,8 @@ func (d Dispatcher) Dispatch(ctx context.Context, args []string, stdin io.Reader return d.handleList(ctx, args, stdout, stderr) case "all": return d.handleAll(ctx, args, stdout, stderr) + case "ready": + return d.handleReady(ctx, args, stdout, stderr) case "dep": return d.handleDep(ctx, args, stdout, stderr) case "urgency": @@ -72,6 +74,7 @@ func (d Dispatcher) help(w io.Writer) (int, error) { io.WriteString(w, "\nSubcommands:\n") io.WriteString(w, " ask add \"description\" Create a new task\n") io.WriteString(w, " ask list [filters] List active tasks (default)\n") + io.WriteString(w, " ask ready List READY tasks (not blocked)\n") io.WriteString(w, " ask all [filters] List all tasks including completed/deleted\n") io.WriteString(w, " ask info <uuid> Show task details\n") io.WriteString(w, " ask annotate <uuid> \"note\" Add annotation to task\n") |
