Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('show')->setDescription('Show information about all joined tasks');
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('run')->setDescription('Run all joined tasks');
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('join')->setDescription('Create new task or update existing task')->addArgument('commandline', InputArgument::REQUIRED, 'The commandline to run with the task')->addOption('priority', null, InputOption::VALUE_REQUIRED, 'The task priority');
 }
Example #4
0
 /**
  * Test that an exception will be thrown when the command was not initialized before.
  *
  * @expectedException \LogicException
  */
 public function testConfigurationThrowsExceptionBeforeInitialization()
 {
     $command = new Command('command');
     $command->getConfiguration();
 }
Example #5
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('purge')->setDescription('Remove all terminated tasks');
 }