Example #1
0
 public function getParser()
 {
     $parser = parent::getParser();
     $parser->addSubcommand('clear', ['description' => 'Clear all metadata caches for the connection. If a ' . 'table name is provided, only that table will be removed.'])->addSubcommand('build', ['description' => 'Build all metadata caches for the connection. If a ' . 'table name is provided, only that table will be cached.'])->addOption('connection', ['description' => 'The connection to build/clear metadata cache data for.', 'alias' => ['c'], 'default' => 'default'])->addArgument('name', ['description' => 'A specific table you want to clear/refresh cached data for.']);
     return $parser;
 }
Example #2
0
 public function getParser()
 {
     $parser = parent::getParser();
     $parser->description('Plugin Shell perform various tasks related to plugin.')->addSubcommand('loaded', ['help' => 'Lists all loaded plugins'])->addSubcommand('load', ['help' => 'Loads a plugin', 'parser' => $this->task("Load")->getParser()])->addSubcommand('unload', ['help' => 'Unloads a plugin', 'parser' => $this->task("Unload")->getParser()]);
     return $parser;
 }
Example #3
0
 public function getParser()
 {
     $parser = parent::getParser();
     $initParser = (new CommandLineParser("init"))->addOption("plugin", ['description' => 'Plugin name.', 'alias' => ['p']])->addOption("force", ['description' => 'Force overwriting.', 'alias' => ['f']])->addArgument("language", ['description' => 'Two-letter language code.']);
     $parser->description('I18n Shell generates .pot files(s) with translations.')->addSubcommand('extract', ['description' => 'Extract the po translations from your application', 'parser' => $this->task("Extract")->getParser()])->addSubcommand('init', ['description' => 'Init PO language file from POT file', 'parser' => $initParser]);
     return $parser;
 }