Help class

Framework\CLI\Commands\Help

Class Help.

Extends Framework\CLI\Command

Defined in libraries/cli/src/Commands/Help.php

Properties #

$name
-
$usage
-

$name

protected string $name = 'help'

$usage

protected string $usage = 'help [command_name]'

Methods #

getDescription()
-
run()
-
setColor()
-
showCommand()
-
sortOptions()
-

getDescription()

public function getDescription(): string
Returns string

run()

public function run(): void
Returns void

setColor()

protected function setColor(string $text): string
Parameters
  • string $text
Returns string

showCommand()

protected function showCommand(string $commandName): void
Parameters
  • string $commandName
Returns void

sortOptions()

protected function sortOptions(string $text): string
Parameters
  • string $text
Returns string

Inherited methods #