A registry that contains the commands known by a shell.
| Constructor and description |
|---|
CommandRegistry
(Object delegate) |
| Type | Name and description |
|---|---|
void |
complete(Completion completion)Perform completion, the completion argument will be notified of the completion progress. |
void |
createProcess(String line, Handler<AsyncResult<Process>> handler)Parses a command line and try to create a process. |
void |
createProcess(List<CliToken> line, Handler<AsyncResult<Process>> handler)Try to create a process from the command line tokens. |
static CommandRegistry |
get(Vertx vertx)Get the registry for the Vert.x instance |
Object |
getDelegate() |
void |
registerCommand(Command command)Register a command |
void |
registerCommand(Command command, Handler<AsyncResult<CommandRegistration>> doneHandler) |
List<CommandRegistration> |
registrations()@return
|
void |
unregisterCommand(String commandName)Unregister a command. |
void |
unregisterCommand(String commandName, Handler<AsyncResult<Void>> doneHandler) |
Perform completion, the completion argument will be notified of the completion progress.
completion - the completion objectParses a command line and try to create a process.
line - the command line to parsehandler - the handler to be notified about process creationTry to create a process from the command line tokens.
line - the command line tokenshandler - the handler to be notified about process creationGet the registry for the Vert.x instance
vertx - the vertx instanceRegister a command
command - the command to register
Unregister a command.
commandName - the command nameio.vertx:vertx-shell:3.1.0