Platformsh\Cli\Command\MultiCommand::completeArgumentValues PHP Method

completeArgumentValues() public method

public completeArgumentValues ( $argumentName, CompletionContext $context )
$context Stecman\Component\Symfony\Console\BashCompletion\CompletionContext
    public function completeArgumentValues($argumentName, CompletionContext $context)
    {
        if ($argumentName === 'cmd') {
            $commandNames = [];
            foreach ($this->getApplication()->all() as $command) {
                if ($command instanceof MultiAwareInterface && $command->canBeRunMultipleTimes() && $command->getDefinition()->hasOption('project')) {
                    $commandNames[] = $command->getName();
                }
            }
            return $commandNames;
        }
        return [];
    }