-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
CLI Specification #1
Comments
Love it so far. Simple and clean. For
|
That was fast man, thank you for taking a lead here!
you mean like a
what would be the content of this file? in general I think we need to focus more on the CLI (interesting presentation here btw). Like try to imagine as many possible options we could see in the future and set some foundation for it now (like basic assumptions) so later on, adding another command doesn't feel like the CLI is actually composed of a number of different CLIs. I hope you know what I mean. So basically when to use verbs and when nouns and be consistent. With
but with my beloved GitHub CLI (yes I like it a lot) it is:
now how would it look like with asyncapi? I think best would be trying to list as many possible commands as you can imagine and then spot some pattern, like maybe:
am I getting crazy here 😅 ? It is Friday afternoon, so you know 😄 |
Just some comment on what @derberg said. I'd make it like this:
Because the AsyncAPI file might not be needed. For instance, to create a new AsyncAPI file with the default name, it could be In any case, I think having both Does it make sense? |
I like asyncapi <action/verb> <resource> ☝🏼 sounds best imho
|
Maybe than |
@magicmatatjahu you sure? I have an impression that |
@derberg The problem with new (as you mentioned) is that it's not a verb :) It's just a proposition. In general, I like the idea similar to k8s edit get etc. |
Yeap! That's the idea, like nodemon when you are on development
I thought that in case you use the cli on a CI environment it could be useful to output the errors on this file. I agree with @fmvilas that in terms of future it will be easier having the cli like |
For those who know all the specification, what types of action would you like to be able to use with the CLI? For now, the things that I have in mind are:
But I have read in the comment above:
So I would like to know if this mean to edit through the command line or open an specific editor to edit the file 🤷🏻♂️ |
For the editing, it is the vision of the future how it works. For sure it needs to be supported on the same level of granularity as getting information. I mean, if I can do nup` so I do not get editor with entire document but just given channel. Some inspiration can be found in GitHub CLI and the issue creation process and usage of 123but yeah, implementation details. As we agreed, let's start easy, and easiest is to do validation first, and a foundation for the project, so we know how the next commands should look like, and most important - how to test features |
Today I'm going to start playing with Ink and try to make a TDD approach so the features' tests will be covered! |
Hi, I'm Khudadad Nomani from Herat University, Herat, Afghanistan. I'm a fourth-year computer science student. I would love to work on this project as a GSoC student. Actually, I'm a little confused. I went through the guidelines and they mentioned starting working on an issue. since this project will start from zero, which other repositories would you recommend that I start working on so it helps me with this project? (@fmvilas saw your presentation here, learned a lot from it. thanks.) |
@KhudaDad414 best would be if you could join our slack https://www.asyncapi.com/slack-invite/ and the #gsoc channel where we organize the work, where all students and mentors are |
@derberg while validating will we give support to older spec versions. |
@Souvikns our vision was always that it is better to invest in converters rather than maintain the old version. So I would say, we definitely need an option to run conversion, we forgot about it, thanks for pointing this out |
would like to discuss the bootstrap parameters. How will the spec document be bootstrapped, will the CLI just create an empty |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
On it 👍🏻. |
@magicmatatjahu can you reopen #7 as this is a major feature. I think if we add |
@Souvikns Please describe the possible solution in the reopen issue :) |
Have we considered adhering to these principles? https://clig.dev/#arguments-and-flags They seem reasonable and it's the "standard" way CLIs work. |
Insights on the use of flags - #7 (comment) |
You mean there is something wrong? we do follow this approach in options like |
Nothing specific. I just wanted to raise awareness of https://clig.dev. |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
this was a kick-off issue, works continues in issues dedicated to specific command so closing this one |
WIP
Setting up a context
The user will be able to set a specification file once and all actions after setting it, will be related to that specification file
Validation
Setup an option to be able to watch a specification file and reload the output when the file change
Generation
New Specification File
Some examples (from @derberg):
The text was updated successfully, but these errors were encountered: