-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Improve design of CLI commands structure #551
Comments
Can we come up with a list of all the existing commands and make a list of how they would look like? |
Hmmm...good point! Let me collect them so we can visualize better the potential transformations ✨ |
@SumantxD
And down below you can see how these commands would look like by following the pattern proposed:
|
Hey,I would like to know more about this issue and how can I approach it |
@sambhavgupta0705 @SumantxD Fresh new ideas or different pattern proposals are pretty welcomed ❤️ |
@peter-rr we can have something like |
At the beginning we had this discussion about I still think we should follow https://clig.dev/ and not Git, or any other CLI. Picking Git, or Docker or Kubectl carries a risk that decision is done purely basing on what we are used to use, what we use more often and remember. Anyway, as stated in readme, we follow I'm not convinced for studio, glee and other new namespaces as there is just one command under. Anyway, comparing us with Kubectl is as confusing as comparing us with Git. Thus we need our way following https://clig.dev/ and just inspire form others like we did with Is there some specific command or something you feel is not intuitive and that triggered you to do a proposal?
cause in my opinion we actually follow common CLIs 😄 |
I found this nodejs-cli-apps-best-practices hope this helps @derberg @peter-rr @Shurtu-gal @fmvilas |
Yeah, I agree with this 👍 It really makes sense in terms of "not reinventing the wheel" and trying to adapt to our needs, not just following what others did.
At this moment, I think the only command that may create confusion regarding user experience is |
the thing is that |
Yeah, that's right 😄 Then we could proceed to close the discussion if nobody has any suggestion or a different proposal to share. |
yes we can change the name to the studio.i would like to work on this. |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Still relevant |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Still relevant |
Hello there 👋 @peter-rr @Amzani If it's fine with you, I would be glad to work on this issue under the Bounty Program, 2024-Q3 as this is a potential issue for the Program.
|
@peter-rr @Shurtu-gal I'm not sure what kind of improvements you suggest here ? |
@Amzani with the recent haul and the improvement in cli now. I suppose this can be closed. Ref: #551 (comment) |
Agree 👍 I think the only change we could introduce in the future regarding commands structure depends on the evolution of features from |
Reason/Context
We need to improve the design of the CLI to follow the existing common CLI's (Docker, Git, GitHub…) to minimise developer's friction and helping to increase the CLI adoption.
For that reason, it would be a good idea to push this improvement in the "must-have" list of things we need for CLI v1.0
Relates to #37
Description
We would like to follow the Git CLI convention:
Proposal
Pattern
Namespace concept
Command will have namespace. A namespace provides a way to organize concepts into distinct, named scopes, which can help avoid naming conflicts and make it easier to manage our CLI at scale.
Examples of namespaces:
studio
glee
config
Examples of commands:
Namespaces can be also nested. But we recommend to stick to a minimal level of nested namespaces.
Example of nested namespace:
config
>context
Examples of commands:
Default namespace
If the namespace is omitted then the commands are executed in the default namespace.
The default namespace in that case is the current
asyncapi
namespace directly including its files.Examples of commands:
The command above will create a new asyncapi file.
The text was updated successfully, but these errors were encountered: