Usage

When the service becomes available, the consumeConsole() function of your main
module will be called. It will be passed a factory of the type ConsoleService,
which registers a source with the console and returns an API for interacting
with it.

User-Controllable Console Sources

In some cases, you may want to give users control over when a message producer
starts and stops producing messages—for example, when it's expensive to produce
the messages. By providing extra information to the console service, it will
expose UI for starting and stopping your producer, as well as for indicating
status.