You are here

protected function StaticCommand::configure in Tome 8

1 method overrides StaticCommand::configure()
StaticExportPathCommand::configure in modules/tome_static/src/Commands/StaticExportPathCommand.php

File

modules/tome_static/src/Commands/StaticCommand.php, line 73

Class

StaticCommand
Contains the tome:static command.

Namespace

Drupal\tome_static\Commands

Code

protected function configure() {
  $this
    ->setName('tome:static')
    ->setDescription('Exports all pages on your site to static HTML.')
    ->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('run-server', NULL, InputOption::VALUE_NONE, 'If a local HTTP server should be started after the export.')
    ->addOption('port', NULL, InputOption::VALUE_OPTIONAL, 'The port to run the server on.', 8889)
    ->addOption('ignore-warnings', NULL, InputOption::VALUE_NONE, 'If configuration warnings should be shown.')
    ->addOption('path-pattern', NULL, InputOption::VALUE_OPTIONAL, 'If you only want to export a specific paths based on pattern.', '')
    ->addOption('retry-count', NULL, InputOption::VALUE_OPTIONAL, 'The number of retry per failed process', static::RETRY_COUNT)
    ->addOption('yes', 'y', InputOption::VALUE_NONE, 'Assume "yes" as answer to all prompts,');
}