protected function StaticExportPathCommand::configure in Tome 8
Overrides StaticCommand::configure
File
- modules/
tome_static/ src/ Commands/ StaticExportPathCommand.php, line 50
Class
- StaticExportPathCommand
- Contains the tome:static-export-path command.
Namespace
Drupal\tome_static\CommandsCode
protected function configure() {
$this
->setName('tome:static-export-path')
->setDescription('Exports static HTML for a specific path.')
->addArgument('chunk', InputArgument::REQUIRED, 'A comma separated list of paths.')
->addOption('process-count', NULL, InputOption::VALUE_OPTIONAL, 'Limits the number of processes to run concurrently.', static::PROCESS_COUNT)
->addOption('path-count', NULL, InputOption::VALUE_OPTIONAL, 'The number of paths to export per process.', static::PATH_COUNT)
->addOption('return-json', NULL, InputOption::VALUE_NONE, 'Whether or not paths that need invoking should be returned as JSON.')
->addOption('retry-count', NULL, InputOption::VALUE_OPTIONAL, 'The number of retry per failed process', static::RETRY_COUNT);
}