@absolunet/ioc2.1.0

View on GitHub

Kernel

The console kernel that implements the needed flow for a proper CLI request handling.

Extends

Members

commandRegistrar :console.services.CommandRegistrar

Source:
CommandRegistrar accessor.

terminal :console.services.Terminal

Source:
Terminal accessor.

bootstrappers :Array.<ServiceProvider>

Source:
Overrides:
Bootstrapper service providers accessor.

Methods

(abstract) beforeHandling()

Source:
Called just before handling incoming request.

(abstract) afterHandling()

Source:
Called just after handling incoming request, if no error was thrown.

(async) call(command)

Source:
Call the given command and process it through the command registrar.
Parameters:
Name Type Description
command string The current command.
Returns:
The async process promise.
Type
Promise

shouldExit(shouldExitopt)

Source:
Specify if the kernel should exit the current process when terminating.
Parameters:
Name Type Attributes Default Description
shouldExit boolean <optional>
true Indicates if the process should exit at the end.

(abstract) terminating()

Source:
Called when the application is terminating.

(async) handle()

Source:
Overrides:
Handle the incoming request.
Returns:
The async process promise.
Type
Promise

terminate()

Source:
Overrides:
Terminate the request handling.