-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Always follow the same structure (verb + noun, noun + verb, or namespace + verb + noun) #37
Comments
I suggested the problem is that sometimes there is just no |
Yeah, that's true. Maybe we should still consider the |
I have to say I'm not fully getting the |
Like in this case:
It's different than:
The first one adds an AsyncAPI file to the context, the second one adds a context. The first one is, for instance, if we want to have tools like https://github.com/asyncapi/app-relations-discovery in the CLI. In that case, you don't want to manually specify all the files because they could potentially be hundreds. Does it make sense? |
I case kubectl or github cli, stuff similar to context, go under We need |
So what would be an example? Something like:
Is it what you mean? |
would be |
Just as @fmvilas said context is not a verb so
It kind of follows the (verb + noun ) rule. What do you think ? @fmvilas @derberg |
@Souvikns I proposed |
Will open a PR for this just to summarize the task,
|
please split it into 2 PRs, one for moving context into |
so, we have an agreement here, right? |
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 ❤️ |
I'd say so. We probably have to document it somewhere in the repo. WDYT? |
I think what we have here is enough -> https://github.com/asyncapi/cli#command-structure-and-patterns |
I think we should be following a structure, regardless of the command at hand. For instance:
Is following the
verb + noun
approach. Whereas:Is reversing it to
noun + verb
.In #1, I suggested we use
verb + noun
because it reads naturally. However, after thinking about how to flip contexts and how to occasionally evolve them to accept multiple asyncapi files, it seems thenoun + verb
might work better here. Just like the Github CLI. So for instance, if I want to add one more asyncapi file to a context, how would it be?So maybe it's a better idea to go for something like:
In this case, the structure would be something like
noun + verb + [noun]
(being the last noun optional). To avoid confusion, I suggest we call itnamespace + verb + [noun]
because the first noun actually works like a namespace.The text was updated successfully, but these errors were encountered: