-
Notifications
You must be signed in to change notification settings - Fork 819
Various crush run improvements #1362
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
Conversation
5d59bf3 to
a9e57f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems solid!
As a little extra thing, if you want to take a look while you're at it: the Generating... text is a little hard to read when using the terminal light mode.
| // HACK: Reinitialize the terminal progress bar on every iteration so | ||
| // it doesn't get hidden by the terminal due to inactivity. | ||
| _, _ = fmt.Printf(ansi.SetIndeterminateProgressBar) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this cause the some bugs on iTerm2/SSH that #1329 fixed for interactive?
If so, we might want to address them.
/cc @aymanbagabas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw this was a present prior to this PR and lives in many places around the codebase.
Oh wow, I didn't realize that was hard-coded to light grey; will fix prior to merging. Thanks for the detailed review! |
7348d27 to
f47c645
Compare
|
Alright, fixed for you @andreynering. |
This is particularly important to keep the last line of output from being overwritten by the prompt when output's a TTY.
💘 Generated with Crush Co-Authored-By: Crush <[email protected]>
Co-authored-by: Justin Johnson <[email protected]>
f47c645 to
d9edf4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This is a series of small-ish improvements to
crush run. The main things are:Other things to do in another pass:
stderrcrush run "What is this?" <<< main.go > output.txtcurl https://charm.land | crush run "What is this?" > output.txt