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 #