vertx / io.vertx.ext.shell.command / Command

Command

interface Command

A Vert.x Shell command, it can be created from any language using the CommandBuilder#command or from a Java class using Command#create

Author
Julien Viet

Functions

cli

open fun cli(): CLI

complete

open fun complete(completion: Completion): Unit

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.

create

open static fun create(vertx: Vertx, clazz: Class<out AnnotatedCommand>): Command

Create a command from a Java class, annotated with Vert.x Core CLI annotations.

createProcess

open fun createProcess(): Process

Create a new process with empty arguments.

abstract fun createProcess(args: MutableList<CliToken>): Process

Create a new process with the passed arguments.

name

open fun name(): String