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 | |
Результат |
protected function execute(InputInterface $input, OutputInterface $output)
{
$index = $input->getArgument('index');
$command = $this->getCommand(new Config($output), $index);
if ($command) {
$output->writeln('<info>Getting index mode</info>');
$passedCommand = "vagrant ssh -c '" . $command . "'";
return new ProcessCommand($passedCommand, $this->_projectPath, $output);
}
$output->writeln('<error>Command not available for this application</error>');
}