From c9d96d4c1918881f771165e97e71de49917d4181 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 26 Mar 2026 22:09:29 +0200 Subject: ask: silence rc.confirmation override banner --- internal/askcli/command_info_add.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/askcli/command_info_add.go') diff --git a/internal/askcli/command_info_add.go b/internal/askcli/command_info_add.go index 025b104..11aea7b 100644 --- a/internal/askcli/command_info_add.go +++ b/internal/askcli/command_info_add.go @@ -50,9 +50,9 @@ func (d Dispatcher) handleAdd(ctx context.Context, args []string, stdout, stderr } modifiers, description := parseAddArgs(args[1:]) var outBuf bytes.Buffer - // rc.verbose=new-uuid instructs taskwarrior to emit "Created task ." - // so we get the UUID directly from the add output without a follow-up export. - taskArgs := []string{"add", "rc.verbose=new-uuid"} + // rc.verbose=nothing keeps Taskwarrior quiet by default. rc.verbose=new-uuid + // then re-enables the UUID-only confirmation we parse below. + taskArgs := []string{"add", "rc.verbose=nothing", "rc.verbose=new-uuid"} taskArgs = append(taskArgs, modifiers...) taskArgs = append(taskArgs, description) code, err := d.runner.Run(ctx, taskArgs, nil, &outBuf, stderr) -- cgit v1.2.3