Skip to content

feat(cli): suppress the banner when PEL_NO_BANNER is set - #806

Merged
discount-elf merged 1 commit into
mainfrom
feat/no-banner-env
Dec 4, 2026
Merged

discount-elf merged 1 commit into
mainfrom
feat/no-banner-env

Conversation

@discount-elf

Copy link
Copy Markdown
Contributor

What

The CLI no longer prints the logo banner when the `PEL_NO_BANNER` environment variable is set to a non-empty value.

The check sits in `banner.printBanner`, next to the existing non-TTY gate. Every banner in the CLI is rendered there (`PrintBanner`, `PrintTextBanner`, and the `app.App` wrappers), so one gate covers the root help, command output and the `agent status --watch` redraw.

Behaviour notes

  • An empty value (`PEL_NO_BANNER=`) does not suppress the banner, following the `NO_COLOR` convention.
  • Config warnings printed by `(*app.App).PrintBanner` still go to stderr; only the logo is suppressed.

Testing

`go test -tags=unit ./internal/cli/banner/` passes, including a new test that covers both banner variants with the variable set and the empty-value case.

@discount-elf
discount-elf merged commit c173015 into main Dec 4, 2026
46 checks passed
@discount-elf
discount-elf deleted the feat/no-banner-env branch December 4, 2026 16:20
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