Chris@0: new Question('Command name', '{machine_name}:example'), Chris@0: 'description' => new Question('Command description', 'Command description.'), Chris@0: 'container_aware' => new ConfirmationQuestion('Make the command aware of the drupal site installation?', TRUE), Chris@0: ]; Chris@0: Chris@0: $vars = &$this->collectVars($input, $output, $questions); Chris@0: $vars['class'] = Utils::camelize(str_replace(':', '_', $vars['command_name'])) . 'Command'; Chris@0: $vars['command_trait'] = $vars['container_aware'] ? 'ContainerAwareCommandTrait' : 'CommandTrait'; Chris@0: Chris@0: $this->addFile() Chris@0: ->path('src/Command/{class}.php') Chris@0: ->template('other/drupal-console-command.twig'); Chris@0: } Chris@0: Chris@0: }