Class Command
This class manages the process of a Command
public
|
|
public
object
|
|
public
string
|
|
public
object
|
|
public
string
|
|
public
object
|
|
public
string
|
|
public
object
|
#
addOption( string $name, string $shortcut = null, string $description = '', mixed $default = null, integer $type = LC_CONSOLE_OPTION_OPTIONAL )
Add an option for the command |
public
object
|
#
addArgument( string $name, string $description = '', mixed $default = null )
Add an argument for the command |
public
|
|
public
|
|
public
object
|
|
public
object
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
array
|
|
public
boolean
|
#
confirm( string $message = 'Are you sure? Type "yes" or "y" to continue:', string|array $input = array('yes', 'y') )
Console confirmation prompt |
protected
string
|
$name
The command name |
|
protected
string
|
$description
The description for the command |
|
protected
string
|
$help
The help tip for the command |
|
protected
array
|
$options
The options for the command such as --help etc. |
#
array()
|
protected
array
|
$shortcuts
The short options of the long options defined for the command such as -h for --help, etc. |
#
array()
|
protected
array
|
$arguments
The arguments for the command |
#
array()
|
protected
array
|
$argumentNames
Array of the argument names |
#
array()
|
protected
closure
|
$definition
Anonymous function that performs the job of the command |