From 0dfcb0f3fe6db144f02506df95e68707d9b5091c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 31 May 2026 10:07:41 +0300 Subject: ask: add completed sub-command to list completed tasks --- internal/askcli/command_list.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/askcli/command_list.go') 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). -- cgit v1.2.3