vertx / io.vertx.ext.shell.command / CommandRegistry / registerCommands

registerCommands

abstract fun registerCommands(commands: MutableList<Command>): CommandRegistry

Like #registerCommands(List, Handler), without a completion handler.

abstract fun registerCommands(commands: MutableList<Command>, completionHandler: Handler<AsyncResult<MutableList<Command>>>): CommandRegistry

Register a list of commands.

Parameters

commands - the commands to register

completionHandler - notified when the command is registered

Return
a reference to this, so the API can be used fluently