-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
re-enable and color dot spinner for non-interactive mode #8996
Conversation
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.
One question out of curiosity, but looks fine.
prefix string | ||
hasWritten bool | ||
} | ||
|
||
func (spin *dotSpinner) Tick() { | ||
if !spin.hasWritten { | ||
fmt.Print(spin.prefix) | ||
fmt.Print(spin.color.Colorize(colors.Yellow + spin.prefix)) |
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.
Why yellow? Does that match something else?
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.
@susanev suggested it to help contrast from resource creations in white.
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.
I should probably add a reset here and then manually color it inside the printf down here just in case things get interrupted and we mess up a terminal
Description
The non-interactive dot spinner functionality was not being triggered due to Interactive == true checks in calling functions.
also added color to match the output style
Fixes #6574
Checklist