/** * Execute set:restaurant * * @param InputInterface $input * @param OutputInterface $outpu * @return void */ protected function execute(InputInterface $input, OutputInterface $output) { $results = $this->project->getRestaurants($input->getArgument('term')); $this->prependSelector()->outputRestaurantsTable($output, $results); $answer = $this->getHelper('question')->ask($input, $output, new Question('<info>Select by index: </info><comment>#</comment>', '0')); $this->project->setRestaurant($results[$answer])->grunt($this->project->getTemplate($results[$answer]['webTemplateId'])); }