/** * Callback method that registers a command extension. * * @param phpucConsoleInputDefinition $def * The input definition container. * @param phpucConsoleCommandI $command * The context cli command instance. * * @return void */ public function registerCommandExtension(phpucConsoleInputDefinition $def, phpucConsoleCommandI $command) { parent::registerCommandExtension($def, $command); $def->addOption($command->getCommandId(), 'n', 'without-phpunit', 'Disable PHPUnit support.'); $def->addOption($command->getCommandId(), 't', 'test-dir', 'The test directory in the project.', true, null, false); $def->addOption($command->getCommandId(), 'a', 'test-case', 'Name of the test case class.', true, null, false); $def->addOption($command->getCommandId(), 'l', 'test-file', 'Name of the test case file.', true, null, false); }
/** * Callback method that registers a command extension. * * @param phpucConsoleInputDefinition $definition * The input definition container. * @param phpucConsoleCommandI $command * The context cli command instance. * * @return void */ public function registerCommandExtension(phpucConsoleInputDefinition $definition, phpucConsoleCommandI $command) { parent::registerCommandExtension($definition, $command); $definition->addOption($command->getCommandId(), 'b', 'without-code-browser', 'Disable PHP CodeBrowser support.'); if (!$definition->hasOption($command->getCommandId(), 'source-dir')) { $definition->addOption($command->getCommandId(), 's', 'source-dir', 'The source directory in the project.', true, 'src', true); } }
/** * Callback method that registers a command extension. * * @param phpucConsoleInputDefinition $def * The input definition container. * @param phpucConsoleCommandI $command * The context cli command instance. * * @return void */ public function registerCommandExtension(phpucConsoleInputDefinition $def, phpucConsoleCommandI $command) { parent::registerCommandExtension($def, $command); $def->addOption($command->getCommandId(), 'f', 'without-code-sniffer', 'Disable PHP CodeSniffer support.'); $def->addOption($command->getCommandId(), 'g', 'coding-guideline', 'The used PHP_CodeSniffer coding guideline.', true, 'PEAR', true); if (!$def->hasOption($command->getCommandId(), 'source-dir')) { $def->addOption($command->getCommandId(), 's', 'source-dir', 'The source directory in the project.', true, 'src', true); } if (!$def->hasOption($command->getCommandId(), 'ignore-dir')) { $def->addOption($command->getCommandId(), 'r', 'ignore-dir', 'List of ignorable directories, separated by comma.', true, null, false); } }
/** * Callback method that registers a command extension. * * @param phpucConsoleInputDefinition $def * The input definition container. * @param phpucConsoleCommandI $command * The context cli command instance. * * @return void */ public function registerCommandExtension(phpucConsoleInputDefinition $def, phpucConsoleCommandI $command) { parent::registerCommandExtension($def, $command); $def->addOption($command->getCommandId(), 'c', 'without-php-documentor', 'Disable phpDocumentor support.'); if (!$def->hasOption($command->getCommandId(), 'source-dir')) { $def->addOption($command->getCommandId(), 's', 'source-dir', 'The source directory in the project.', true, 'src', true); } if (!$def->hasOption($command->getCommandId(), 'ignore-dir')) { $def->addOption($command->getCommandId(), 'r', 'ignore-dir', 'List of ignorable directories, separated by comma.', true, null, false); } }