Index class
Framework\CLI\Commands\Index
Class Index.
Extends Framework\CLI\Command
Defined in libraries/cli/src/Commands/Index.php
Properties #
- $name
- -
- $description
- -
- $usage
- -
- $options
- -
$name
protected string $name = 'index'
$description
protected string $description = 'Show commands list'
$usage
protected string $usage = 'index'
$options
protected array $options = array (
'-g' => 'Shows greeting.',
)
Methods #
- getDescription()
- -
- getOptions()
- -
- run()
- -
- editDescription()
- -
- getUser()
- -
- getWidthAndLengths()
- -
- greet()
- -
- listCommands()
- -
- showDate()
- -
- showHeader()
- -
getDescription()
public function getDescription(): string
Returns
string
getOptions()
public function getOptions(): array
Returns
array
run()
public function run(): void
Returns
void
editDescription()
protected function editDescription(string $description): string
Parameters
- string $description
Returns
string
getUser()
protected function getUser(): string
Returns
string
getWidthAndLengths()
protected function getWidthAndLengths(array $commands): array
Parameters
- array $commands
Returns
array
greet()
protected function greet(): void
Returns
void
listCommands()
protected function listCommands(): void
Returns
void
showDate()
protected function showDate(): void
Returns
void
showHeader()
protected function showHeader(): void
Returns
void
Inherited methods #
-
__construct()fromFramework\CLI\Command -
getConsole()fromFramework\CLI\Command -
setConsole()fromFramework\CLI\Command -
getName()fromFramework\CLI\Command -
setName()fromFramework\CLI\Command -
getGroup()fromFramework\CLI\Command -
setGroup()fromFramework\CLI\Command -
setDescription()fromFramework\CLI\Command -
getUsage()fromFramework\CLI\Command -
setUsage()fromFramework\CLI\Command -
setOptions()fromFramework\CLI\Command -
isActive()fromFramework\CLI\Command -
activate()fromFramework\CLI\Command -
deactivate()fromFramework\CLI\Command