/** * Execute the command. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ public function execute(InputInterface $input, OutputInterface $output) { $question = new Question("<fg=cyan>What title should be assigned to your bug report?</fg=cyan> "); $title = $this->getHelper('question')->ask($input, $output, $question); $branch = $input->getOption('dev') ? 'develop' : 'master'; $this->action->execute($input->getArgument('name'), $branch, $title); }
/** * Execute the command. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ public function execute(InputInterface $input, OutputInterface $output) { $this->action->execute($input->getOption('dev') ? 'develop' : 'master'); }
/** * Execute the command. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ public function execute(InputInterface $input, OutputInterface $output) { $this->action->execute($input->getArgument('id')); }