コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('show')->setDescription('Show information about all joined tasks');
 }
コード例 #2
0
ファイル: RunCommand.php プロジェクト: gravitymedia/commander
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('run')->setDescription('Run all joined tasks');
 }
コード例 #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');
 }
コード例 #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();
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('purge')->setDescription('Remove all terminated tasks');
 }