Nest Commander Versions Save

A module for using NestJS to build up CLI applications

[email protected]

1 year ago

Minor Changes

  • 519018e: Add ability to set outputConfiguration.

    Now CommandFactory.run(), CommandFactory.runWithoutClosing() and CommandFactory.createWithoutRunning() accept the option outputConfiguration.

[email protected]

1 year ago

Minor Changes

  • 1fa92a0: Support NestJS v10

[email protected]

1 year ago

Minor Changes

  • 1fa92a0: Support NestJS v10

[email protected]

1 year ago

Minor Changes

  • 6cc1112: Add ability to pass NestApplicationContextOptions to CommandFactoryRunOptions.

    Now CommandFactory.createWithoutRunning() can accept more options, for example, bufferLogs to pre-save Nest startup logs.

[email protected]

1 year ago

Patch Changes

  • 1ceab9d: Log error and stack wtih custom error message instead of just custom error message

[email protected]

1 year ago

Minor Changes

  • 9a5f555: Add a new method to create an application but nott run it in case of needing to modify the logger or similar situations.

    Now the CommandFactory.createWithoutRunning() method can be used to create a Nest commander application without running the commandRunner.run(). To run the newly created application, CommandFactory.runApplicaiton(app) can be called. I may change this to be a simple app.run() in the future.

[email protected]

1 year ago

Patch Changes

  • 84b5067: Adds support for positional options and passthrough options

[email protected]

1 year ago

Patch Changes

[email protected]

1 year ago

Patch Changes

  • c35e8cc: Fixed issue with parsing serviceErrorHandler option to properly override default behaviour

[email protected]

1 year ago

Minor Changes

  • 7f54ff8: Add serviceErrorHandler option

    This option allows for catching and handling errors at the Nest service execution level so that lifecycle hooks still properly work. By default it is set to (err: Error) => process.stderr.write(err.toString()).

  • 09b6134: Add the ability to have a Root command

    With the @RootCommand() the -h flag can now output the options of the default command along with the names of the other commands.