A module for using NestJS to build up CLI applications
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.
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.