Class Command
A sub command processed by the application. Example peg init
Direct known subclasses
Peg\Custom\Command\Generate, Peg\Custom\Command\Help, Peg\Custom\Command\Init, Peg\Custom\Command\Parse
public
|
#
__construct( string $name,
Initialize the command. |
public
|
|
public
null|
|
|
public
|
|
public
|
#
RegisterAction(
Register actions that get call when command is executed. |
public
string
|
$name | |
#
Name of the command. |
public
string
|
$description | |
#
Description of the command displayed on help. |
public
|
$options | |
#
Array of Options processed by the command. |
public
string
|
$value | |
#
In case the command supports values. Example: peg init something where 'init' is the command and 'something' is the value. |
public
boolean
|
$value_required | |
#
Flag that indicates if a value is required for the command. |
public
|
$actions | |
#
Array of Actions called if this command gets executed. |