class DrushCommand extends Command (View source)

DrushCommand is a PsySH proxy command which accepts a Drush command config array and tries to build an appropriate PsySH command for it.

Methods

__construct(Command $command)

DrushCommand constructor.

string
getNamespace()

Get the namespace of this command.

void
configure()

{@inheritdoc}

int
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.

string getNamespace()

Get the namespace of this command.

Return Value

string

protected void configure()

{@inheritdoc}

Return Value

void

protected int execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

protected string buildHelpFromCommand()

Build a command help from the Drush configuration array.

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

The help string.

Return Value

string