You are here

protected function GenerateTheme::configure in Drupal 9

File

core/lib/Drupal/Core/Command/GenerateTheme.php, line 41

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

protected function configure() {
  $this
    ->setName('generate-theme')
    ->setDescription('Generates a new theme based on latest default markup.')
    ->addArgument('machine-name', InputArgument::REQUIRED, 'The machine name of the generated theme')
    ->addOption('name', NULL, InputOption::VALUE_OPTIONAL, 'A name for the theme.')
    ->addOption('description', NULL, InputOption::VALUE_OPTIONAL, 'A description of your theme.')
    ->addOption('path', NULL, InputOption::VALUE_OPTIONAL, 'The path where your theme will be created. Defaults to: themes')
    ->addUsage('custom_theme --name "Custom Theme" --description "Custom theme generated from a starterkit theme" --path themes');
}