Esempio n. 1
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     parent::configureInput();
     $this->addOption('hook', null, InputOption::VALUE_REQUIRED, $this->getCustomHookOptionDescription());
     foreach ($this->getAvailableHooks() as $hook) {
         $this->addOption($hook, null, InputOption::VALUE_NONE, $this->getHookOptionDescription($hook));
     }
     return $this;
 }
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     $this->setUnsetOption();
     $this->setScopeOptions();
     $this->addArgument('key', InputArgument::OPTIONAL, 'Configuration key.');
     $this->addArgument('value', InputArgument::OPTIONAL, 'Configuration value.');
     return $this;
 }
Esempio n. 3
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     parent::configureInput();
     $this->addArgument('key', InputArgument::REQUIRED);
     $this->addArgument('value', InputArgument::OPTIONAL);
     $this->setUnsetOption();
     $this->setSetOption();
     /**
      * When this parameter set key must be an XML path
      */
     $this->addOption('xpath', '-x', InputOption::VALUE_NONE, 'XPath mode. "key" parameter will be considered as an XML path.');
     $this->setScopeOptions();
     foreach ($this->trackerConnectionOptions as $name) {
         $this->addOption($name, null, InputOption::VALUE_OPTIONAL, "Tracker connection '{$name}' option.");
     }
     return $this;
 }
Esempio n. 4
0
 /**
  * Skip input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     $this->addArgument('validator', InputArgument::REQUIRED, 'Validator name.');
     $this->addOption('enable', null, InputOption::VALUE_NONE, 'Enable validator back.');
     return $this;
 }
Esempio n. 5
0
 /**
  * Skip input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     $this->addOption('unique', '-u', InputOption::VALUE_NONE, 'Show validators by file types with status.');
     return $this;
 }
Esempio n. 6
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     $this->addOption('issues', 'i', InputOption::VALUE_NONE, 'Clear cache for issues/tasks requests (uses for commit messages).');
     $this->addOption('config', 'c', InputOption::VALUE_NONE, 'Clear cache of config files (all XML ones).');
     parent::configureInput();
     return $this;
 }
Esempio n. 7
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     return $this;
 }
Esempio n. 8
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     parent::configureInput();
     $this->addArgument('path', InputArgument::OPTIONAL, 'Path to file/directory which should be tested.');
     return $this;
 }
Esempio n. 9
0
 /**
  * Skip input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     $this->addOption('show', 's', InputOption::VALUE_NONE, 'Show validator names which will be omitted.');
     $this->addOption('code', 'c', InputOption::VALUE_NONE, 'Ignore code validation.');
     $this->addOption('protection', 't', InputOption::VALUE_NONE, 'Ignore file protection.');
     $this->addOption('all', 'f', InputOption::VALUE_NONE, 'Ignore all validators.');
     $this->addOption('disable', 'r', InputOption::VALUE_NONE, 'Disable ignoring of the next commit (return to normal mode).');
     return $this;
 }
Esempio n. 10
0
 /**
  * Init input definitions
  *
  * @return $this
  */
 protected function configureInput()
 {
     AbstractCommand::configureInput();
     $this->addArgument('value', InputArgument::OPTIONAL);
     $this->addOption('info', 'i', InputOption::VALUE_NONE, 'Show detailed information about an issue.');
     return $this;
 }