genese-cli
v0.0.17
Published
CLI for Genese framework
Downloads
3
Readme
Genese-cli
Genese-cli is a command line interface to ease the use of the other genese packages:
1. Installation
Please install globally the npm module:
npm i -g genese-cli
2 Genese complexity
The Genese Complexity module analyzes the cognitive complexity and the cyclomatic complexity of projects.
After installing genese-cli globally, you'll need to install the complexity module.
npm i -g genese-complexity
Then, you can launch the analysis with this command-line:
genese cpx [pathDir]
Options
| Option | Possible values | Default | Description | | ----- | ----- | ----- | ----- | | -l --language | ts, js, tsx, jsx, java | ts | Start the analysis for the given language | | -m --markdown | | | Generate a Markdown report instead of a HTML report | | -c --console | | | Disable report generation and output result to console | | -r --refactor | | | Enable refactoring report generation |
Genese complexity is available for TypeScript, JavaScript and Java.
You will find more information in the genese-complexity documentation.
2 Genese API
Genese API module is a code generators which allows you to generate data-services and DTO models from an OpenAPI file.
It's available for Angular and React.
After installing @genese/cli globally, you'll need to install the complexity module.
npm i -g genese-api
Then, you can start the generation with this command-line:
genese api
You will find more information in the genese-api documentation.