class CliCommands 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.

docs()

Drush's PHP Shell.

cli(array $options = ['version-history' => false, 'cwd' => null])

No description

array
getDrushCommands()

Returns a filtered list of Drush commands used for CLI commands.

array.
getCasters()

Returns a mapped array of casters for use in the shell.

string.
historyPath(array $options)

Returns the file path for the CLI history.

array
getPhpKeywords()

Returns a list of PHP keywords.

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.

docs()

Drush's PHP Shell.

cli(array $options = ['version-history' => false, 'cwd' => null])

Parameters

array $options

protected array getDrushCommands()

Returns a filtered list of Drush commands used for CLI commands.

Return Value

array

protected array. getCasters()

Returns a mapped array of casters for use in the shell.

These are Symfony VarDumper casters. See http://symfony.com/doc/current/components/var_dumper/advanced.html#casters for more information.

Return Value

array. An array of caster callbacks keyed by class or interface.

protected string. historyPath(array $options)

Returns the file path for the CLI history.

This can either be site specific (default) or Drupal version specific.

Parameters

array $options

Return Value

string.

protected array getPhpKeywords()

Returns a list of PHP keywords.

This will act as a blacklist for command and alias names.

Return Value

array