Skip to content

Allow to show spinner on non tty output devices#812

Closed
ctn-malone wants to merge 3 commits intocharmbracelet:mainfrom
ctn-malone:refactor-allow-to-show-spinner-on-non-tty
Closed

Allow to show spinner on non tty output devices#812
ctn-malone wants to merge 3 commits intocharmbracelet:mainfrom
ctn-malone:refactor-allow-to-show-spinner-on-non-tty

Conversation

@ctn-malone
Copy link
Copy Markdown
Contributor

Adds a --show-spinner option to work around the fact that by default, spinner won't be shown when output device is not a TTY (ie: redirected or piped) on version 0.15.0 (introduced in cf2da64)

Examples

Screenshot_20250121_135735

Screenshot_20250121_135836

While flag name may be a bit confusing, I think such option may be useful and would fix some issues such as #803

@ctn-malone ctn-malone requested a review from a team as a code owner January 21, 2025 13:01
@ctn-malone ctn-malone requested review from csandeep and removed request for a team January 21, 2025 13:01
@caarlos0
Copy link
Copy Markdown
Contributor

hmm, I think the problem there is that we should have checked for stderr instead of stdout, let me give it a better look

@caarlos0
Copy link
Copy Markdown
Contributor

can you try #813?

@ctn-malone
Copy link
Copy Markdown
Contributor Author

can you try #813?

Yep, much better indeed :). Closing in favor of #813

@ctn-malone ctn-malone closed this Jan 21, 2025
@ctn-malone ctn-malone deleted the refactor-allow-to-show-spinner-on-non-tty branch January 21, 2025 22:18
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.

3 participants