Skip to content

feat(spin): --show-stdout --show-stderr#774

Merged
caarlos0 merged 1 commit intomainfrom
spin-out-err
Dec 13, 2024
Merged

feat(spin): --show-stdout --show-stderr#774
caarlos0 merged 1 commit intomainfrom
spin-out-err

Conversation

@caarlos0
Copy link
Copy Markdown
Contributor

closes #362

@caarlos0 caarlos0 added enhancement New feature or request cmd/spin labels Dec 12, 2024
@caarlos0 caarlos0 self-assigned this Dec 12, 2024
@caarlos0 caarlos0 merged commit 32786f7 into main Dec 13, 2024
@caarlos0 caarlos0 deleted the spin-out-err branch December 13, 2024 17:34
@bashbunni
Copy link
Copy Markdown
Contributor

Quick Q: while testing this I'm finding spin isn't animating nor printing the command's output. Maybe user error? Getting this regardless of whether I use a --show-x flag or not. It just prints the first render of the spinner

image

@caarlos0
Copy link
Copy Markdown
Contributor Author

I think it needs to be

gum spin --show-stdout --title "Running command..." -- sleep 10 && echo hello

for me the command you provided exits 1 🤔

@bashbunni
Copy link
Copy Markdown
Contributor

Ah I get it now! Thank you :D Looks great

@bashbunni bashbunni added this to the v0.15.0 milestone Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd/spin enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to ignore stderr when running gum spin

2 participants