Skip to content

fix: honor --quiet in print-mode usage footer - #289

Merged
Patel230 merged 1 commit into
mainfrom
feat/print-footer-quiet
Sep 7, 2026
Merged

fix: honor --quiet in print-mode usage footer#289
Patel230 merged 1 commit into
mainfrom
feat/print-footer-quiet

Conversation

@Patel230

@Patel230 Patel230 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

The print-mode usage footer (added in #288) didn't honor --quiet, unlike exec's existing footer. Added the IsQuiet() guard so graycode --quiet -p ... suppresses the footer, keeping machine-parseable output clean.

Verification

  • go build ./..., gofumpt -l clean.
  • go test ./... exit 0.
  • TestPrintTextUsageFooter now covers the quiet-suppression path.

Align the one-shot text-mode usage footer with exec's existing footer by
suppressing it under --quiet, so machine-parseable output stays clean.
@Patel230
Patel230 merged commit 4c96a0d into main Sep 7, 2026
25 of 26 checks passed
@Patel230
Patel230 deleted the feat/print-footer-quiet branch September 7, 2026 06:45
Patel230 added a commit that referenced this pull request Sep 7, 2026
--print already honored --quiet for the usage footer (PR #289) and exec now
honors it for tool activity (PR #293), but --print's [ToolName] stderr labels
were emitted unconditionally. Gate them on !IsQuiet() so --print --quiet is
fully clean (machine-parseable stdout and no decoration on stderr), matching
exec and the --quiet contract. stream-json output is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant