protected function configure() { parent::configure(); $this->setName('rollerworks:multi-user:generate:usersys'); $definition = $this->getDefinition(); $definition->addOption(new InputOption('db-driver', '', InputOption::VALUE_REQUIRED, 'DB-driver to use')); $this->setHelp(<<<EOT The <info>rollerworks:multi-user:generate:usersys</info> command helps you generates new user-system bundles. By default, the command interacts with the developer to tweak the generation. Any passed option will be used as a default value for the interaction (<comment>--namespace</comment> is the only one needed if you follow the conventions): <info>php app/console rollerworks:multi-user:generate:usersys --namespace=Acme/UserBundle</info> Note that you can use <comment>/</comment> instead of <comment>\\ </comment>for the namespace delimiter to avoid any problem. If you want to disable any user interaction, use <comment>--no-interaction</comment> but don't forget to pass all needed options: <info>php app/console rollerworks:multi-user:generate:usersys --namespace=Acme/UserBundle --dir=src [--db-driver=...] [--bundle-name=...] --no-interaction</info> Note that the bundle namespace must end with "Bundle". EOT ); }
/** * {@inheritdoc} */ public function configure() { parent::configure(); $this->setName('victoire:generate:widget')->setDefinition([new InputOption('namespace', '', InputOption::VALUE_REQUIRED, 'The namespace of the widget bundle to create'), new InputOption('dir', '', InputOption::VALUE_REQUIRED, 'The directory where to create the bundle'), new InputOption('bundle-name', '', InputOption::VALUE_REQUIRED, 'The optional bundle name'), new InputOption('orgname', '', InputOption::VALUE_REQUIRED, 'Your organisation name'), new InputOption('widget-name', '', InputOption::VALUE_REQUIRED, 'The widget name'), new InputOption('format', '', InputOption::VALUE_REQUIRED, 'Use the format for configuration files (php, xml, yml, or annotation)'), new InputOption('structure', '', InputOption::VALUE_NONE, 'Whether to generate the whole directory structure'), new InputOption('fields', '', InputOption::VALUE_REQUIRED, 'The fields to create with the new entity'), new InputOption('entity', '', InputOption::VALUE_REQUIRED, 'The entity class name to initialize (shortcut notation)'), new InputOption('parent', '', InputOption::VALUE_REQUIRED, 'The widget this widget will extends'), new InputOption('packagist-parent-name', '', InputOption::VALUE_REQUIRED, 'The packagist name of the widget you want to extends'), new InputOption('content-resolver', '', InputOption::VALUE_NONE, 'Whether to generate a blank ContentResolver to customize widget rendering logic')])->setDescription('Generate a new widget')->setHelp(<<<EOT The <info>victoire:generate:widget</info> command helps you to generate new widgets. By default, the command interacts with the developer to tweak the generation. Any passed option will be used as a default value for the interaction (<comment>--widget-name</comment> is the only one needed if you follow the conventions): <info>php app/console victoire:generate:widget --widget-name=myAwesomeWidget</info> If you want to disable any user interaction, use <comment>--no-interaction</comment> but don't forget to pass all needed options: Love you guys, you're awesome xxx EOT ); }
/** * {@inheritDoc} * * @return void */ protected function configure() { parent::configure(); $this->addOption('loaderBundleName', 'lbn', InputOption::VALUE_OPTIONAL, 'Name of the bundle to manipulate, defaults to GravitonCoreBundle', 'GravitonCoreBundle')->addOption('doUpdateKernel', 'dak', InputOption::VALUE_OPTIONAL, 'If "true", update the kernel, "false" if we should skip that.', 'true')->setName('graviton:generate:bundle')->setDescription('Generates a graviton bundle'); }