public interface Command
CommandBuilder.command(java.lang.String) or from a
Java class using create(java.lang.Class<? extends io.vertx.ext.shell.command.Command>)| Modifier and Type | Method and Description |
|---|---|
default CLI |
cli() |
default void |
complete(Completion completion)
Perform command completion, when the command is done completing it should call
Completion.complete(List)
or Completion.complete(String, boolean) )} method to signal completion is done. |
static Command |
create(Class<? extends Command> clazz)
Create a command from a Java class, annotated with Vert.x Core CLI annotations.
|
default String |
name() |
void |
process(CommandProcess process)
Process the command, when the command is done processing it should call the
CommandProcess.end() method. |
static Command create(Class<? extends Command> clazz)
clazz - the class of the commanddefault String name()
default CLI cli()
void process(CommandProcess process)
CommandProcess.end() method.process - the command processdefault void complete(Completion completion)
Completion.complete(List)
or Completion.complete(String, boolean) )} method to signal completion is done.completion - the completion objectCopyright © 2015. All rights reserved.