Releases: jmcdo29/nest-commander
[email protected]
Minor Changes
- 15da048: InquirerService now exposes inquirer publicly
[email protected]
Patch Changes
- 23b2f48: Add 3.0.0 to peer deps
[email protected]
Major Changes
-
1bfc69f: Schematics now create command that extends the CommandRunner abstract class
-
799b143: Update @nestjs/schematics to version 9
There should not be "breaking" functionality, but there was a major version change of a dependent pacakge with no backwards support guaranteed.
Patch Changes
- 67662f6: fix typo
[email protected]
Major Changes
-
d6ebe0e: Migrate
CommandRunner
from interface to abstract class and add.command
This change was made so that devs could access
this.command
inside theCommandRunner
instance and have access to the base command object from commander. This allows for access to thehelp
commands in a programatic fashion.To update to this version, any
implements CommandRunner
should be changed toextends CommandRunner
. If there is aconstructor
to theCommandRunner
then it should also usesuper()
.
Minor Changes
Patch Changes
- c30a4de: Ensure the parser for choices is always called
[email protected]
Major Changes
-
d6ebe0e: Migrate
CommandRunner
from interface to abstract class and add.command
This change was made so that devs could access
this.command
inside theCommandRunner
instance and have access to the base command object from commander. This allows for access to thehelp
commands in a programatic fashion.To update to this version, any
implements CommandRunner
should be changed toextends CommandRunner
. If there is aconstructor
to theCommandRunner
then it should also usesuper()
.
Minor Changes
- 3d2aa9e: Update NestJS package to version 9
[email protected]
Minor Changes
-
2d8a143: Added support for aliased subcommands
-
6e39331: Allow for command options to have defined choices
Option choices are now supported either as a static string array or via the
@OptionChoicesFor()
decorator on a class method. This decorator method approach allows for using a class's injected providers to give the chocies, which means they could come from a database or a config file somewhere if the CLI is set up to handle such a case
[email protected]
Minor Changes
-
eaa63fb: Adds a new CliUtilityService and @InjectCommander() decorator
There is a new
CliUtilityService
and@InjectCommander()
decorator that allows for direct access to the commander instance. The utility service has methods likeparseBoolean
,parseInt
, andparseFloat
. The number parsing methods are just simple wrappers aroundNumber.parse*()
, but the boolean parsing method handles true beingyes
,y
,1
,true
, andt
and false beingno
,n
,false
,f
, and0
.
[email protected]
Patch Changes
- 55eb46d: Update peerDependencies for nest-commander to include @types/inquirer
[email protected]
Patch Changes
- 3ad2c3a: Add cosmiconfig to the dependencies for proper publishing
[email protected]
Patch Changes
- 8285a98: missing config file warning doesn't show