Class AnnotatedCommand
java.lang.Object
io.vertx.ext.shell.command.AnnotatedCommand
- Direct Known Subclasses:
BusPublish, BusTail, Echo, FileSystemCd, FileSystemLs, FileSystemPwd, Help, LocalMapGet, LocalMapPut, LocalMapRm, NetCommandLs, Sleep, VerticleDeploy, VerticleFactories, VerticleLs, VerticleUndeploy
The base command class that Java annotated command should extend.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncli()voidcomplete(Completion completion) Perform command completion, when the command is done completing it should callCompletion.complete(List)orCompletion.complete(String, boolean))} method to signal completion is done.name()abstract voidprocess(CommandProcess process) Process the command, when the command is done processing it should call theCommandProcess.end()method.
-
Constructor Details
-
AnnotatedCommand
public AnnotatedCommand()
-
-
Method Details
-
name
- Returns:
- the command name
-
cli
- Returns:
- the command line interface, can be null
-
process
Process the command, when the command is done processing it should call theCommandProcess.end()method.- Parameters:
process- the command process
-
complete
Perform command completion, when the command is done completing it should callCompletion.complete(List)orCompletion.complete(String, boolean))} method to signal completion is done.- Parameters:
completion- the completion object
-