public interface CommandBuilder
Modifier and Type | Method and Description |
---|---|
Command |
build(Vertx vertx)
Build the command
|
static CommandBuilder |
command(CLI cli)
Create a new commmand with its
CLI descriptor. |
static CommandBuilder |
command(String name)
Create a new commmand builder, the command is responsible for managing the options and arguments via the
arguments . |
CommandBuilder |
completionHandler(Handler<Completion> handler)
Set the command completion handler, the completion handler when the user asks for contextual command line
completion, usually hitting the tab key.
|
CommandBuilder |
processHandler(Handler<CommandProcess> handler)
Set the command process handler, the process handler is called when the command is executed.
|
static CommandBuilder command(String name)
arguments
.name
- the command namestatic CommandBuilder command(CLI cli)
CLI
descriptor. This command can then retrieve the parsed
CommandProcess.commandLine()
when it executes to know get the command arguments and options.cli
- the cli to useCommandBuilder processHandler(Handler<CommandProcess> handler)
handler
- the process handlerCommandBuilder completionHandler(Handler<Completion> handler)
handler
- the completion handlerCopyright © 2024 Eclipse. All rights reserved.