-
Notifications
You must be signed in to change notification settings - Fork 221
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
cmd: Add function to determine if a spinner can be started #826
cmd: Add function to determine if a spinner can be started #826
Conversation
The logic for determining if a spinner can be started is non-trivial and hard to replicate. containers#826
f73f062
to
aab6a2a
Compare
Build failed.
|
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.
Is this still important with the current state of #787 ? At least it needs a rebase.
"golang.org/x/crypto/ssh/terminal" | ||
) | ||
|
||
func canStartSpinner() bool { |
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.
The spinner is only used in src/cmd/create.go
, so this function should go in that file.
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'd rather put it into src/cmd/utils.go
because it isn't strictly related to the create
command.
I'd merge it anyway. There's always the possibility of us adding a new spinner. |
The logic for determining if a spinner can be started is non-trivial and hard to replicate. containers#826
aab6a2a
to
7d40b45
Compare
Build succeeded.
|
The logic for determining if a spinner can be started is non-trivial and
hard to replicate.