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/taskexec.go | |
| parent | b10c6247e14a3acfe20e78426e131691e205a601 (diff) | |
ask: silence rc.confirmation override banner
Diffstat (limited to 'internal/askcli/taskexec.go')
| -rw-r--r-- | internal/askcli/taskexec.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/askcli/taskexec.go b/internal/askcli/taskexec.go index 0553070..59d9b55 100644 --- a/internal/askcli/taskexec.go +++ b/internal/askcli/taskexec.go @@ -37,9 +37,10 @@ func (e Executor) taskArgs(repoRoot string, args []string) ([]string, error) { if err != nil { return nil, err } - // rc.confirmation=off suppresses interactive prompts so the CLI works - // non-interactively (stdin is never available when called from an agent). - return append([]string{"rc.confirmation=off", "project:" + projectName, "+agent"}, args...), nil + // rc.verbose=nothing suppresses Taskwarrior's configuration override + // banner, while rc.confirmation=off keeps non-interactive commands from + // prompting when stdin is unavailable. + return append([]string{"rc.verbose=nothing", "rc.confirmation=off", "project:" + projectName, "+agent"}, args...), nil } func (e Executor) Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { |
