Example #1
0
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::SINGLE_OPTIONAL, '--format', '-f')->setDescription('Output format: normal, plain, raw');
 }
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::BOOLEAN, '--no-interaction', '-n')->setDescription('Disable interactions like questions, prompts, etc');
 }
Example #3
0
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::INCREMENTAL, '--verbosity', '-v')->setDescription('Output verbosity: 0 = normal, 1 = verbose, 2 = debug, 3 = silent');
 }
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::SINGLE_OPTIONAL, '--env')->setDescription('Set application environment');
 }
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::BOOLEAN, '--passthrough')->setDescription('Do not catch any errors or exceptions');
 }
Example #6
0
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true);
     $command->argument(ArgumentType::MULTIPLE_OPTIONAL, 'args');
     $command->option(OptionType::BOOLEAN, '--help', '-h')->setDescription('Show help text');
 }
Example #7
0
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true)->setHidden(true);
     $command->option(OptionType::BOOLEAN, '--silent', '-s')->setDescription('Disable input and output');
 }
Example #8
0
 /**
  * @param ICommand $command
  */
 public function setup(ICommand $command)
 {
     $command->setGlobal(true);
     $command->option(OptionType::BOOLEAN, '--version', '-V')->setDescription('Show application version');
 }