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

cmd: Add function to determine if a spinner can be started #826

Closed

Conversation

HarryMichal
Copy link
Member

The logic for determining if a spinner can be started is non-trivial and
hard to replicate.

@HarryMichal HarryMichal added 6. Minor Change Should not cause breakage 2. CLI Issue is related to the command line interface 3. Refinement Reduces technical debt of the codebase 2. Under The Hood Multiple areas of the app are influenced by this ticket labels Jul 3, 2021
HarryMichal added a commit to HarryMichal/toolbox that referenced this pull request Jul 3, 2021
The logic for determining if a spinner can be started is non-trivial and
hard to replicate.

containers#826
@HarryMichal HarryMichal force-pushed the cmd/add-spinner-check-func branch from f73f062 to aab6a2a Compare July 3, 2021 12:45
@softwarefactory-project-zuul
Copy link

Build failed.

@HarryMichal HarryMichal added this to the Release 0.1.0 milestone Jul 3, 2021
Copy link
Member

@debarshiray debarshiray left a 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 {
Copy link
Member

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.

Copy link
Member Author

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.

@HarryMichal
Copy link
Member Author

Is this still important with the current state of #787 ? At least it needs a rebase.

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
@HarryMichal HarryMichal force-pushed the cmd/add-spinner-check-func branch from aab6a2a to 7d40b45 Compare July 16, 2021 15:48
@softwarefactory-project-zuul
Copy link

Build succeeded.

@HarryMichal HarryMichal removed this from the Release 0.1.0 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. CLI Issue is related to the command line interface 2. Under The Hood Multiple areas of the app are influenced by this ticket 3. Refinement Reduces technical debt of the codebase 6. Minor Change Should not cause breakage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants