Skip to content

Releases: jmcdo29/nest-commander

[email protected]

02 Sep 16:07
Compare
Choose a tag to compare

Minor Changes

  • 15da048: InquirerService now exposes inquirer publicly

[email protected]

04 Aug 19:36
Compare
Choose a tag to compare

Patch Changes

[email protected]

04 Aug 19:36
Compare
Choose a tag to compare

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

[email protected]

26 Jul 03:03
Compare
Choose a tag to compare

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 the CommandRunner instance and have access to the base command object from commander. This allows for access to the help commands in a programatic fashion.

    To update to this version, any implements CommandRunner should be changed to extends CommandRunner. If there is a constructor to the CommandRunner then it should also use super().

Minor Changes

  • 3d2aa9e: Update NestJS package to version 9
  • a8d109f: Upgrade commander to v9.4.0

Patch Changes

  • c30a4de: Ensure the parser for choices is always called

[email protected]

26 Jul 03:03
Compare
Choose a tag to compare

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 the CommandRunner instance and have access to the base command object from commander. This allows for access to the help commands in a programatic fashion.

    To update to this version, any implements CommandRunner should be changed to extends CommandRunner. If there is a constructor to the CommandRunner then it should also use super().

Minor Changes

  • 3d2aa9e: Update NestJS package to version 9

[email protected]

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

[email protected]

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.

[email protected]

08 Jan 23:12
Compare
Choose a tag to compare

Patch Changes

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

[email protected]

01 Nov 19:12
Compare
Choose a tag to compare

Patch Changes

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

[email protected]

11 Oct 16:24
Compare
Choose a tag to compare

Patch Changes

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