Comments (11)
There is a bug, CLI is breaking in production, it runs fine but shows a warning, you can look into #192. We are migrating to a new version of oclif #203. Can you merge this branch and try once.
Let me know if this problem is resolved.
from cli.
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 ❤️
from cli.
yup, still needed, we use https://www.npmjs.com/package/levenshtein-edit-distance already in generator -> https://github.com/asyncapi/generator/blob/master/lib/templateConfigValidator.js#L67
it is pretty nifty and should not be difficult to add I think
from cli.
Hey, can I take this up?
from cli.
@ron-debajyoti definitely 👍🏼
from cli.
Hi @Souvikns ,
I was exploring to fix the issue, but I can't really figure out where do I catch the mismatch of the commands.
For example :
- when I try to run
asyncapi validate wrongCommand
or a command where I use one of the supported commands but a wrong input parameter, then thecatch
function insrc/base.ts
catches it, but - when I try to run
asyncapi invalidCommand
, I don't see the abovecatch
function insrc/base.ts
catching it. I thinkoclif
directly handles there isn't such a class defined undersrc/commands
. How do I handle such cases?
Please correct me if I got something wrong.
from cli.
Yeah, you are right if there isn't a class in the commands folder then oclif handles it. You can refer to this. Also, check this out for this issue, there are some premade plugins that would help us achieve this.
from cli.
Hey @Souvikns , sorry for not responding to this earlier.
I looked into the plugins and figured using @oclif/plugin-not-found
would solve the problem. I tried installing it and also @oclif/plugin-help
, but I'm getting plugin module errors during executing. Trying prepack
also showed the import errors.
I suspect this might be due to @oclif/plugin-help
dependent on @oclif/core
and we are using @oclif/config
, Seems like have to make our own plugins instead of using existing ones but I would like to have you take a look into it as well.
from cli.
Let me know if this problem is resolved.
Yep, it worked!
So since you're waiting for that PR to get merged, do I open a PR too for this issue?
from cli.
Yeah @ron-debajyoti you can go ahead and open a PR.
from cli.
🎉 This issue has been resolved in version 0.16.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cli.
Related Issues (20)
- Implement new UI/UX improvements in start command HOT 11
- Implement new UI/UX improvements in validate command HOT 1
- [BUG] CLI installation takes a lot of time HOT 5
- Support for multiple versions of generator HOT 14
- [BUG] Command generate fromTemplate brakes with MODULE_NOT_FOUND HOT 4
- [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 2
- [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 2
- [BUG] New CLI installs are broken (also in Docker) HOT 2
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.