Releases: jmcdo29/nest-commander
nest-commander@2.5.0
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
nest-commander@2.4.0
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
.
nest-commander@2.3.5
Patch Changes
- 55eb46d: Update peerDependencies for nest-commander to include @types/inquirer
nest-commander@2.3.4
Patch Changes
- 3ad2c3a: Add cosmiconfig to the dependencies for proper publishing
nest-commander@2.3.3
Patch Changes
- 8285a98: missing config file warning doesn't show
nest-commander@2.3.2
Patch Changes
- 3c43005: fix: move plugin error code to onModuleInit
nest-commander@2.3.1
Patch Changes
- 478c0d9: Make commands built with
usePlugins: true
not exit on non-found config file, just log extra data when an error happens
nest-commander@2.3.0
Minor Changes
-
6c9eaa3: Commands can now be built with the expectation of reading in plugins to dynamically modify the CLI
By using the
usePlugins
option for theCommandFactory
, the built CLI can expect to find a configuration file atnest-commander.json
(or several others, check the docs) to allow for users to plug commands in after the CLI is built. -
13723bd: Subcommands can now be created
There's a new decorator,
@SubCommand()
for creating nested commands likedocker compose up
. There's also a new option on@Command()
(subCommands
) for setting up this sub command relationship.
nest-commander@2.2.0
Minor Changes
-
3831e52: Adds a new
@Help()
decorator for custom commander help outputnest-commander-testing
now also uses ahex
instead ofutf-8
encoding when creating a random js file name during theCommandTestFactory
command. This is to help create more predictable output names.
nest-commander-testing@2.0.1
Patch Changes
-
3831e52: Adds a new
@Help()
decorator for custom commander help outputnest-commander-testing
now also uses ahex
instead ofutf-8
encoding when creating a random js file name during theCommandTestFactory
command. This is to help create more predictable output names.