Replies: 1 comment
-
|
I would love to have this in gum |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I love the
gumsuite of tools for building better/interactive bash scripts, so thank so much for make the tool!BLUF:
I want a version of gum spin that works with
--show-output,--show-stdout, and--show-stderrthat ensure the spinner stays on the screen.I have a multi-stage bash script which I want to continually monitor the progress in each "stage" there are a few long running commands that can produce a lot of output which also serve as an indictor to it's progression. So I want to see both the spinner's
--titlewhich helps indicate the current stage and the output of that command, but currently the spinner get pushed off the window by the commands output.I want to open a PR implementing this feature if it is something the team feels would be useful or do you think this creeps beyond the intent of
gum spinCommand Ex:
gum spin --show-output --box-output --title "Some title" -- ...Example screenshots:
Should this be deemed useful enough for others what other customization options should apply to the viewport box? looking at
gum pageras a reference. Additionally considering some kind of--max-linesoption for the viewport box to hold, ex the last 10 lines of the commands output. That way the viewport box doesn't consume the whole screen.example patch:
reference.patch
Finally, If there is interest I will clean up the implementation I have and open a PR
Beta Was this translation helpful? Give feedback.
All reactions