diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-26 22:09:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-26 22:09:29 +0200 |
| commit | c9d96d4c1918881f771165e97e71de49917d4181 (patch) | |
| tree | 4992fca4e8684468cba897624a92e5efe41180be /internal/askcli/command_info_add.go | |
| parent | b10c6247e14a3acfe20e78426e131691e205a601 (diff) | |
ask: silence rc.confirmation override banner
Diffstat (limited to 'internal/askcli/command_info_add.go')
| -rw-r--r-- | internal/askcli/command_info_add.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 <uuid>." - // 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) |
