class DrushCommand extends Command (View source)

Main Drush command.

Methods

__construct(Command $command)

DrushCommand constructor.

getNamespace()

Get the namespace of this command.

configure()

{@inheritdoc}

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

string
buildHelpFromCommand()

Build a command help from the Drush configuration array.

Details

__construct(Command $command)

DrushCommand constructor.

Parameters

Command $command Original Drush command.

getNamespace()

Get the namespace of this command.

protected configure()

{@inheritdoc}

protected execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

protected string buildHelpFromCommand()

Build a command help from the Drush configuration array.

Currently it's a word-wrapped description, plus any examples provided.

Return Value

string The help string.