Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print the output of the command after the spinner is finished #81

Closed
HoangTuan110 opened this issue Aug 2, 2022 · 2 comments
Closed

Comments

@HoangTuan110
Copy link

Is your feature request related to a problem? Please describe.
I am currently working on a simple wrapper of curl, and I wanted to return the result of the curling after a spinner, like this:

gum spin --spinner moon --title "Buying Bubble Gum..." -- curl -fsSL curl.se

But gum doesn't return the output of the curl after the spinner exits.

Describe the solution you'd like
I want the spinner to print the output of the command after the command (and the spinner) exits.

Describe alternatives you've considered
I am not aware of any alternatives at the moment. I have also considered using a sleep command instead, then actually do the curl:

gum spin --spinner moon --title "Buying Bubble Gum..." -- sleep 2
curl -fsSL curl.se

But I think this isn't genuine.

Additional context
No additional context.

@maaslalani
Copy link
Member

On the latest version of gum there is a --show-output flag for gum spin

@HoangTuan110
Copy link
Author

Oh, thank you! Not aware of that. Will close this issue.

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

No branches or pull requests

2 participants