Releases: jmcdo29/nest-commander
Releases · jmcdo29/nest-commander
nest-commander@1.2.0
Minor Changes
-
7cce284: Add ability to use error handler for commander errors
Within the
CommandFactory.run()
now as a second parameter you can either keep passing just the logger, or you can pass in an object with the logger and anerrorHandler
. ThserrorHandler
is a method that takes in anError
and returnsvoid
. The errorHandler will be passed to commander'sexitOverride
method, if it exists. This is useful for better handling errors and giving the dev more control over what is seen. There is also no longer anunhandledPromiseRejection
on empty commands.
nest-commander-schematics@1.0.0
Major Changes
- 28cc116: Releases two schematics for the angular and nest CLI's to make use of
command
andquestion
. To use one, you can pass--collection nest-commander-schematic
to Nest's CLI and then the schematic name followed by the name of the feature. e.g.nest g --collection nest-commander-schematics command foo
.
V1.1.0
Features
- new
InquirerService
to allow for integration with Inquirer. Check this blog post for more info