Skip to content

Conversation

caarlos0
Copy link
Member

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
14 checks passed
@caarlos0 caarlos0 deleted the spin-out-err branch December 13, 2024 17:34
@bashbunni
Copy link
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
Member 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
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