PHP Class Platformsh\Cli\Command\MultiCommand

Inheritance: extends CommandBase, implements Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$canBeRunMultipleTimes

Public Methods

Method Description
completeArgumentValues ( $argumentName, CompletionContext $context )
completeOptionValues ( $optionName, CompletionContext $context )

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getAllProjects ( Symfony\Component\Console\Input\InputInterface $input ) : Platformsh\Client\Model\Project[] Get a list of the user's projects, sorted according to the input.
getSelectedProjects ( Symfony\Component\Console\Input\InputInterface $input ) : Platformsh\Client\Model\Project[] | false Get the projects selected by the user.
showDialogChecklist ( array $options, string $text = 'Choose item(s)' ) : array Show a checklist using the dialog utility.

Method Details

completeArgumentValues() public method

public completeArgumentValues ( $argumentName, CompletionContext $context )
$context Stecman\Component\Symfony\Console\BashCompletion\CompletionContext

completeOptionValues() public method

public completeOptionValues ( $optionName, CompletionContext $context )
$context Stecman\Component\Symfony\Console\BashCompletion\CompletionContext

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getAllProjects() protected method

Get a list of the user's projects, sorted according to the input.
protected getAllProjects ( Symfony\Component\Console\Input\InputInterface $input ) : Platformsh\Client\Model\Project[]
$input Symfony\Component\Console\Input\InputInterface
return Platformsh\Client\Model\Project[]

getSelectedProjects() protected method

Projects can be specified via the command-line option --projects (as a list of project IDs) or, if possible, the user will be prompted with a checklist via the 'dialog' utility.
protected getSelectedProjects ( Symfony\Component\Console\Input\InputInterface $input ) : Platformsh\Client\Model\Project[] | false
$input Symfony\Component\Console\Input\InputInterface
return Platformsh\Client\Model\Project[] | false An array of projects, or false on error.

showDialogChecklist() protected method

Show a checklist using the dialog utility.
protected showDialogChecklist ( array $options, string $text = 'Choose item(s)' ) : array
$options array
$text string
return array

Property Details

$canBeRunMultipleTimes protected property

protected $canBeRunMultipleTimes