Creates an instance of HandlerResponse.
The command response object (See class for details) - contains all the public APIs that the handler should use to formulate responses.
The command response object allocated by the command processor that exposes the APIs intended for the handler to use.
Returns the instance of the console APIs for the handler. Provides APIs to console messaging (log, error, etc.).
Returns the instance of the data APIs for the handler. Provides APIs for the handlers to formulate their JSON response objects to the command.
Returns the instance of the format APIs for the handler. APIs allow the handler to provide output objects/strings and they will be automatically formatted and printed to the console.
Returns the instance of the progress bar APIs for the handler. Provides methods to start and end progress bars.
Generated using TypeDoc
Handler command response APIs. Passed to command handlers for console messages, data responses, and progress bars. Handlers can implement their own logging scheme (or use the Imperative.api to obtain an instance of the logger), but handlers should NEVER write directly to the console and should always use the APIs here to construct responses. The HandlerResponse object will automatically handle response formats, etc.