Skip to content

Releases: jmcdo29/nest-commander

[email protected]

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.

[email protected]

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.

[email protected]

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.

[email protected]

20 May 02:11
1479dea
Compare
Choose a tag to compare

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 an errorHandler. Ths errorHandler is a method that takes in an Error and returns void. The errorHandler will be passed to commander's exitOverride 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 an unhandledPromiseRejection on empty commands.

[email protected]

11 Apr 17:12
4ff1d85
Compare
Choose a tag to compare

Major Changes

  • 28cc116: Releases two schematics for the angular and nest CLI's to make use of command and question. 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

08 Apr 16:55
f96f3e6
Compare
Choose a tag to compare

Features

  • new InquirerService to allow for integration with Inquirer. Check this blog post for more info

V1.0.0

15 Jan 07:32
Compare
Choose a tag to compare

The first release of the nest-commander and nest-commander-testing packages. Most everything you need to know is in the documentation, but it'll at least be nice to have some tags to go along with things as I make updates.