Command

A Vert.x Shell command, it can be created from any language using the @see \io\vertx\jphp\ext\shell\command\CommandBuilder::command or from a Java class using @see \io\vertx\jphp\ext\shell\command\Command::create

package

Default

Methods

__construct

__construct() 

cli

cli() : \io\vertx\jphp\core\cli\CLI

Response

\io\vertx\jphp\core\cli\CLI

the command line interface, can be null

Perform command completion, when the command is done completing it should call or )} method to signal completion is done.

complete( $arg0) : void

Arguments

$arg0

Completion

Create a new process with empty arguments.

createProcess( $arg0 = null) : \io\vertx\jphp\ext\shell\system\Process

createProcess()

Create a new process with the passed arguments.

param $args [array] the process arguments createProcess($args)

Arguments

$arg0

array

Response

\io\vertx\jphp\ext\shell\system\Process

the process

name

name() : string

Response

string

the command name