@caretaker/codegen.net
v1.4.0
Published
![npm (scoped)](https://img.shields.io/npm/v/@caretaker/codegen.net) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@caretaker/codegen.net)
Downloads
4
Readme
@caretaker/codegen.net
Codegen for Caretaker's .NET projects, written in NodeJS.
Usage
| Description | Syntax | Alias |
| ---------------------------------------------- | ----------------------------------------------- | -------------------------- |
| Generate a new query | codegen query <name> [response] [params...]
| gq
, generate:query
|
| Generate a new command | codegen command <name> [response] [params...]
| gc
, generate:command
|
| Generate a new request | codegen req <name> [params...]
| grq
, generate:request
|
| Generate a new response | codegen resp <name> [params...]
| grp
, generate:response
|
| Generate a new event and optionally a consumer | codegen event <name> [params...]
| ge
, generate:event
|
| Show help | codegen --help
| - |
| Print current version number | codegen --version
| - |
Options
| Description | Syntax | Alias | Notes |
| -------------------------------------------- | ------------ | ----- | ---------------------------- |
| Generate a validator for queries or commands | --validate
| -v
| [boolean] [default: false]
|
| Generate an event consumer for events | --consume
| -c
| [boolean] [default: false]
|