Skip to content

Commit

Permalink
feat: add generate fromTemplate command (#221)
Browse files Browse the repository at this point in the history
Co-authored-by: Matatjahu <[email protected]>
  • Loading branch information
Souvikns and magicmatatjahu authored Sep 27, 2022
1 parent 098b24b commit 3bafd43
Show file tree
Hide file tree
Showing 25 changed files with 25,533 additions and 22,407 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
lib
/test/commands/generate/models/
test/helpers
/test/minimaltemplate
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},
"overrides": [
{
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts"],
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts", "*.test.ts"],
"rules": {
"no-undef": "off",
"security/detect-non-literal-fs-filename": "off",
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ node_modules
asyncapi.json
asyncapi.yaml
asyncapi.yml
/test/docs
test/minimaltemplate/__transpiled


spec-examples.zip
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![AsyncAPI CLI](./assets/logo.png)](https://www.asyncapi.com)

CLI to work with your AsyncAPI files. Currently supports validation, but it is under development for more features.
CLI to work with your AsyncAPI files. Currently under development, we are working to bring more features.

[![GitHub license](https://img.shields.io/github/license/asyncapi/cli)](https://github.com/asyncapi/cli/blob/master/LICENSE)
[![PR testing - if Node project](https://github.com/asyncapi/cli/actions/workflows/if-nodejs-pr-testing.yml/badge.svg)](https://github.com/asyncapi/cli/actions/workflows/if-nodejs-pr-testing.yml)
Expand Down Expand Up @@ -114,7 +114,7 @@ asyncapi

## Usage

As of now, the `@asyncapi/cli` only supports validation of the specification file. (This is still under development for more features.)
`@asyncapi/cli` makes it easier to work with asyncpi files.

We have well-documented help commands so just run:

Expand Down Expand Up @@ -144,6 +144,7 @@ COMMANDS
java generate the models for Java
javascript generate the models for JavaScript
dart generate the models for Dart
fromTemplate generate whatever you want using templates compatible with AsyncAPI Generator
```

## Contributing
Expand Down
Loading

0 comments on commit 3bafd43

Please sign in to comment.