-
Notifications
You must be signed in to change notification settings - Fork 1.5k
✨ Implement Bubbletea for Interactive CLI Prompts #4720
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: p-shah256 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @p-shah256. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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.
Very nice 🎉
This PR allow us to analise it !!!
Great. we will need some time to see if we move forward with the change or not.
I am adding a
/hold
Just to give more time for we properly analyse it and discuss the pros and cons
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.
Hi @p-shah256,
Hope you're doing well!
I noticed we also have INFO and WARM outputs—do you think it would make sense to use bubbletea with those as well? Just wondering if that could improve consistency or clarity.
If possible, could you maybe add a small example showing how it might look in one of those cases? That would help us better understand how it fits.
Also, for the help command—do you think we should update that to use bubbletea too?
Thanks a lot for your work on this!
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Description
This PR implements Bubbletea for interactive command-line prompts in the create API command, improving the UX by providing a more modern and engaging interface. The implementation focuses on the interactive aspects of Kubebuilder's CLI, specifically for prompting users about creating resources and controllers.
Motivation
Enhance the developer experience by providing more intuitive and visually appealing CLI interactions. Bubbletea offers improved interactive capabilities that make Kubebuilder's workflow more user-friendly while maintaining functionality.
Implementation
Note on Logrus replacement: While Bubbletea excels at interactive TUI elements, it's not primarily designed for logging functionality. I've focused on the interactive aspects first and would appreciate guidance on the preferred approach for handling the logging components (whether to use slog another dedicated logging library, or a hybrid approach).
Fixes #4523