diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-31 10:07:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-31 10:07:41 +0300 |
| commit | 0dfcb0f3fe6db144f02506df95e68707d9b5091c (patch) | |
| tree | ed6c0b976acca95b403a7939dd49c49de160003b /internal/askcli/command_list.go | |
| parent | 168d3a1009066ba38a37fe8a2f8f40a649344eae (diff) | |
ask: add completed sub-command to list completed tasks
Diffstat (limited to 'internal/askcli/command_list.go')
| -rw-r--r-- | internal/askcli/command_list.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/askcli/command_list.go b/internal/askcli/command_list.go index 99ffcc8..ebe26da 100644 --- a/internal/askcli/command_list.go +++ b/internal/askcli/command_list.go @@ -21,6 +21,10 @@ func (d *Dispatcher) handleReady(ctx context.Context, args []string, stdout, std return d.handleListWithFilters(ctx, []string{"+READY"}, args[1:], stdout, stderr) } +func (d *Dispatcher) handleCompleted(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { + return d.handleListWithFilters(ctx, []string{"status:completed"}, args[1:], stdout, stderr) +} + // handleListWithFilters is the shared implementation for list/all/ready. // initialFilters seeds the taskwarrior filter; extraArgs are user-supplied // filter modifiers (limit:, sort:, +tag, started). |
