Ejemplo n.º 1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('server-stats')->setDescription('Displays information about the beanstalkd server')->addOption('list', 'l', InputOption::VALUE_NONE, 'List all the stat names')->addOption('stat', 's', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Output the value of the specified stat <comment>(one per line if multiple)</comment>')->addOption('current', 'c', InputOption::VALUE_NONE, 'List current count stats')->addOption('cmd', null, InputOption::VALUE_NONE, 'List command count stats')->addOption('other', 'o', InputOption::VALUE_NONE, 'List other stats and values')->addOption('binlog', 'b', InputOption::VALUE_NONE, 'List binlog stats and values');
 }
Ejemplo n.º 2
0
 protected function configure()
 {
     parent::configure();
     $this->setName(static::NAME)->addArgument('id', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'The ID(s) of the job')->setDescription('Displays information about a job')->setHelp($this->getHelpText());
 }
Ejemplo n.º 3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('stats')->addArgument('tube', InputArgument::IS_ARRAY, 'The name of one or more tubes (does not have to be exact) <comment>(default: all tubes)</comment>')->addOption('refresh', 'f', InputOption::VALUE_NONE, 'Continue to refresh table every second')->addOption('cron', null, InputOption::VALUE_NONE, 'Log stats from cron job')->setDescription('Displays information about the current tubes')->setHelp($this->getHelpText());
 }
Ejemplo n.º 4
0
 protected function configure()
 {
     parent::configure();
     $this->setName(static::NAME)->setDescription('Get list of tubes');
 }