Skip to content

fix(spin): if not a tty, only print title, do not open tty for stdin#763

Merged
caarlos0 merged 1 commit intomainfrom
spin-tty-2
Dec 11, 2024
Merged

fix(spin): if not a tty, only print title, do not open tty for stdin#763
caarlos0 merged 1 commit intomainfrom
spin-tty-2

Conversation

@caarlos0
Copy link
Copy Markdown
Contributor

bubbletea by default will try to open a tty for stdin, this makes it not do that if we're not on a terminal (e.g. docker build)

on the same token, simplify rendering in that case, printing only the title ("Loading..." by default).

closes #328

@caarlos0 caarlos0 self-assigned this Dec 11, 2024
@caarlos0 caarlos0 added bug Something isn't working cmd/spin labels Dec 11, 2024
@caarlos0 caarlos0 merged commit cf2da64 into main Dec 11, 2024
@caarlos0 caarlos0 deleted the spin-tty-2 branch December 11, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cmd/spin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gum spin called when building an image fails

1 participant