示例#1
0
 /**
  * Execute command.
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return int|null|void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     /** @var Application $app */
     $app = $this->getApplication();
     $this->updateManager = $app->getSlicer()->getUpdateManager();
     $this->updateManager->update(NULL);
 }
示例#2
0
 /**
  * Execute command.
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return int
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     /** @var Application $app */
     $app = $this->getApplication();
     $this->updateManager = $app->getSlicer()->getUpdateManager();
     if (NULL === $this->updateManager->getChangeProvider() && !$input->hasArgument('provider')) {
         throw new InvalidArgumentException('Change Provider must be specified either in slicer.json or as an argument');
     }
     if ($input->hasArgument('provider')) {
         $provider = $input->getArgument('provider');
         die($provider);
     }
     $start = $input->getArgument('starting-version');
     $end = $input->getArgument('ending-version');
     $result = $this->updateManager->createUpdate($start, $end);
 }