-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Develop CLI Style guide #12811
Comments
I would love to see some of the advice from https://seirdy.one/posts/2022/06/10/cli-best-practices/ incorporated. |
Example of inconsistent use of |
I know this could be a large undertaking, but if we are looking into improving our CLI then I think considering the switch from kingpin to cobra is a worthwhile thing (https://github.com/spf13/cobra, https://cobra.dev/). I know things were different a few years back, but right now cobra sees much more activity: https://go.libhunt.com/compare-kingpin-vs-cobra. Cobra generally looks more mature, better designed and more feature-rich (shell autocomplete, suggesting corrections on typos, ...). |
Unlikely to happen as the |
I haven't tried it, but my gut feeling is that my That being said, cobra is not a drop-in replacement, so some issues will likely appear in one place or another. |
@smallinsky do you mind if I work on this? I think our CLI really needs refinement. It's the major entry-point to setting up and using Teleport, yet we have a lot of inconsistencies and issues with it. The first step in cleaning it up should be establishing our own rules around CLI code style and UX as this feature-request suggests. Then we can work to move our CLI into compliance with those rules, and then setting up lints and tests to keep us in compliance with the rules so we don't drift away from them as other work is done. I've come across many more issues while working on #19560 that make me think this should be prioritized. edit: By "working on this" I mean to draft an RFD. |
This should also include the use of colors, see #36929 for example. |
good point, also mentioned by https://seirdy.one/posts/2022/06/10/cli-best-practices/
|
Review Heroku CLI style guide and develop our own:
https://devcenter.heroku.com/articles/cli-style-guide
The text was updated successfully, but these errors were encountered: