class ListCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

string
helpList($options = ['format' => 'listcli', 'raw' => false, 'filter' => self::REQ])

List available commands.

buildDom($namespaced, $application)

No description

static 
renderListCLI(Application $application, array $namespaced, OutputInterface $output, string $preamble)

No description

static 
getTerminalWidth()

No description

renderListRaw(array $namespaced)

No description

static array
categorize(Command[] $all, string $separator = ':')

No description

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

string helpList($options = ['format' => 'listcli', 'raw' => false, 'filter' => self::REQ])

List available commands.

Parameters

$options

Return Value

string

DOMDocument buildDom($namespaced, $application)

Parameters

$namespaced
$application

Return Value

DOMDocument

static renderListCLI(Application $application, array $namespaced, OutputInterface $output, string $preamble)

Parameters

Application $application
array $namespaced
OutputInterface $output
string $preamble

static getTerminalWidth()

renderListRaw(array $namespaced)

Parameters

array $namespaced

static array categorize(Command[] $all, string $separator = ':')

Parameters

Command[] $all
string $separator

Return Value

array