Commit 70694da
fix(help): hide ASCII banner when stdout is not a TTY (#501)
## Summary
Suppresses the SENTRY ASCII banner in `sentry` / `sentry help` when
stdout is piped or redirected. Interactive terminal sessions still show
the banner.
## Changes
Wraps the banner output in `printCustomHelp()` with a
`process.stdout.isTTY` check.
## Test plan
- `bun run dev` → banner visible
- `bun run dev | cat` → no banner
- `bun test test/lib/help.test.ts` → all 8 tests pass
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a1264b5 commit 70694da
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments