Skip to content

Releases: jmcdo29/nest-commander

nest-commander@2.5.0

19 Apr 02:56
Compare
Choose a tag to compare

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

31 Jan 20:00
Compare
Choose a tag to compare

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 like parseBoolean, parseInt, and parseFloat. The number parsing methods are just simple wrappers around Number.parse*(), but the boolean parsing method handles true being yes, y, 1, true, and t and false being no, n, false, f, and 0.

nest-commander@2.3.5

08 Jan 23:12
Compare
Choose a tag to compare

Patch Changes

  • 55eb46d: Update peerDependencies for nest-commander to include @types/inquirer

nest-commander@2.3.4

01 Nov 19:12
Compare
Choose a tag to compare

Patch Changes

  • 3ad2c3a: Add cosmiconfig to the dependencies for proper publishing

nest-commander@2.3.3

11 Oct 16:24
Compare
Choose a tag to compare

Patch Changes

  • 8285a98: missing config file warning doesn't show

nest-commander@2.3.2

10 Oct 20:28
Compare
Choose a tag to compare

Patch Changes

  • 3c43005: fix: move plugin error code to onModuleInit

nest-commander@2.3.1

10 Oct 04:23
Compare
Choose a tag to compare

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

02 Oct 18:44
Compare
Choose a tag to compare

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 the CommandFactory, the built CLI can expect to find a configuration file at nest-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 like docker compose up. There's also a new option on @Command() (subCommands) for setting up this sub command relationship.

nest-commander@2.2.0

16 Sep 03:25
42fdbd1
Compare
Choose a tag to compare

Minor Changes

  • 3831e52: Adds a new @Help() decorator for custom commander help output

    nest-commander-testing now also uses a hex instead of utf-8 encoding when creating a random js file name during the CommandTestFactory command. This is to help create more predictable output names.

nest-commander-testing@2.0.1

16 Sep 03:25
42fdbd1
Compare
Choose a tag to compare

Patch Changes

  • 3831e52: Adds a new @Help() decorator for custom commander help output

    nest-commander-testing now also uses a hex instead of utf-8 encoding when creating a random js file name during the CommandTestFactory command. This is to help create more predictable output names.