Skip to content

Commit fe45f9a

Browse files
hjuarez20enzolutions
authored andcommitted
[generate:module] Add default values --no-interaction (#4102)
1 parent c79f603 commit fe45f9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Command/Generate/ModuleCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
210210
$this->validator->validateMachineName($input->getOption('machine-name'))
211211
:$this->stringConverter->createMachineName($module);
212212

213-
$description = $input->getOption('description');
214-
$core = $input->getOption('core');
215-
$package = $input->getOption('package');
213+
$description = $input->getOption('description')?:$this->trans('commands.generate.module.suggestions.my-awesome-module');
214+
$core = $input->getOption('core')?:'8.x';
215+
$package = $input->getOption('package')?:'Custom';
216216
$moduleFile = $input->getOption('module-file');
217217
$featuresBundle = $input->getOption('features-bundle');
218218
$composer = $input->getOption('composer');

0 commit comments

Comments
 (0)