Comments (8)
Hi all! 👋 @magicmatatjahu @Souvikns @derberg
I've been having a look and investigating a bit on this issue and I'd like to start working on it as a starting point to contribute to the CLI repo. If no objections from your side, please let me work on it and I'll get back to you with a proposal as soon as I have some working code 💪 Cheers!
from cli.
Maybe we have a --output
flag that takes a path as an input. Converts the old version to the new version and outputs in that path, and if the --output
flag is missing we can just update the original file.
from cli.
Our comverter-js has builded custom CLI, but we should move it to the main CLI.
definitely, same with generator. This is the ultimate goal of this CLI. One CLI to rule them all 😄
I would definitely like CLI to be friendly and interactive, and when you do asyncapi convert
, you get an interactive response from the CLI with list of versions that you can convert too, so you select the version that you want manually. And of course you can skip this interactiveness with a flag like --targetVersion
or -t
.
the future of the command
my opinion is that we should not put=
betweenasyncapi convert
and the JavaScript Converter that we have. Meaning: that nowasyncapi convert
will invoke the list of available target versions, but simply because in code we will by default support AsyncAPI now, but in future this should be definitely extendable, so we can add other formats, why not 🤷🏼
--output
imho we should do--output
as it will be universal for other commands, not>
. And if you do not provide--output
or-o
then we print the result in the terminal
from cli.
@peter-rr go ahead mate!
from cli.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from cli.
Solution that we should consider for that issue asyncapi/community#249 It's only an idea so please treat it as suggestion, not final approach. Feel free to comment :)
from cli.
I think this issue can be closed as it was implemented by @peter-rr in #188. @Souvikns @magicmatatjahu can you close it? I can do it but I should not 😄
from cli.
Yeah, it's implemented. Thanks!
from cli.
Related Issues (20)
- Support for multiple versions of generator HOT 14
- [BUG] Command generate fromTemplate brakes with MODULE_NOT_FOUND HOT 6
- [BUG] File name is not captured while creating new asyncapi.yml from using new command HOT 2
- [FEATURE] Adding a progress bar for CLI Commands to show the progress status HOT 2
- [FEATURE] New command to publish the result generated by generate and model command. HOT 1
- [FEATURE] New Command to format the Asyncapi document HOT 2
- Replace request by node-fetch HOT 1
- [BUG] generate fromTemplate fails since 1.13.0 HOT 4
- [FEATURE] Improve storage of `.asyncapi-analytics` config file HOT 7
- [FEATURE] Support ignore feature of optimizer HOT 3
- [BUG] latest download URL is not working HOT 7
- [FEATURE] Add support to change the collection type for arrays in Java models HOT 1
- [TEST] Incomplete log of tests executed for `bundle` command HOT 1
- [BUG] 'SonarCloud Code Analysis' workflow not triggered on CI/CD HOT 1
- [BUG] asyncapi bundle does not report error if external reference cannot be resolved HOT 3
- [BUG] Generate commands only run in context of the CWD, not the directory of the asyncapi.yaml file HOT 3
- [BUG] New CLI installs are broken (also in Docker) HOT 2
- [BUG] from . import AnonymousSchemaX breaks types (?) HOT 3
- [BUG] Doesn't work for Hello world example from AsyncAPI HOT 6
- Add convert to AsyncAPI from OpenAPI support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.