-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add progress tracker and message for CLI while cloning a template #1888
Conversation
smithy-cli/src/main/java/software/amazon/smithy/cli/ProgressTracker.java
Outdated
Show resolved
Hide resolved
4251ac5
to
209cd47
Compare
smithy-cli/src/main/java/software/amazon/smithy/cli/ProgressStyle.java
Outdated
Show resolved
Hide resolved
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.
This works, thanks. I think we can improve the style/updater APIs in the future to improve them a bit more (e.g., one idea is to make the update value a generic parameter of the style and update class, then allow update messages to be sent to the updater which then sends it to the styler, allowing progress bars, messages, etc).
…ithy-lang#1888) Adds a progress tracker for long running CLI tasks. The progress tracker currently supports a simple repeated dots pattern to indicate execution of a long running task. The progress tracker can be extended in the future to support progress bars and additional loading messages.
…ithy-lang#1888) Adds a progress tracker for long running CLI tasks. The progress tracker currently supports a simple repeated dots pattern to indicate execution of a long running task. The progress tracker can be extended in the future to support progress bars and additional loading messages.
Description of changes:
Adds a progress tracker class that can be used to execute a progress tracker for the CLI while waiting for a set of commands to execute. This PR adds the progress tracker to cloning of templates in the init command as that action can take multiple seconds to complete.
Additional loading bars and progress tracker styles could be added in the future.
Example Execution gif:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.