@genese/cli v1.2.3
@genese/cli
@genese/cli
is a command line interface to ease the use of @genese packages:
Installation
Please install globally the npm module:
npm i -g @genese/cli
@genese/complexity
The @genese/complexity module analyzes the cognitive complexity and the cyclomatic complexity of projects in different languages.
After installing @genese/cli
globally, you must 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.
@genese/api
@genese/api is a code generator which allows you to generate data-services and DTO models from an OpenAPI file.
This module is available for Angular and React.
After installing @genese/cli
globally, you'll need to install the @genese/api
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.