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

cli: improve UX of set command #65

Merged
merged 3 commits into from
Jan 11, 2024
Merged

cli: improve UX of set command #65

merged 3 commits into from
Jan 11, 2024

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented Jan 10, 2024

Adds a progress indicator and guards the SetManifest rpc with a retry loop.
Note that dialing in grpc is basically a no-op, which means we have to do the retry around the actual client rpc.
While there are grpc options to change this behavior, those are strongly discouraged.

@malt3 malt3 requested a review from katexochen as a code owner January 10, 2024 16:11
Copy link
Member

@katexochen katexochen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should also add detection for interactive terminals.

internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner.go Outdated Show resolved Hide resolved
internal/spinner/spinner_test.go Show resolved Hide resolved
internal/spinner/spinner_test.go Outdated Show resolved Hide resolved
cli/set.go Outdated Show resolved Hide resolved
@malt3 malt3 force-pushed the feat/cli/spinner branch 2 times, most recently from 3d6f3be to 8b9ee40 Compare January 11, 2024 13:29
cli/set.go Outdated Show resolved Hide resolved
@malt3 malt3 requested a review from katexochen January 11, 2024 15:38
@malt3 malt3 merged commit bad9ea6 into main Jan 11, 2024
4 checks passed
@malt3 malt3 deleted the feat/cli/spinner branch January 11, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants