Merge pull request #18576 from BernieO/bernieo-convertInteractive
enable option '--no-interaction' for db:convert-type
This commit is contained in:
commit
4defd0419a
1 changed files with 3 additions and 1 deletions
|
@ -212,9 +212,11 @@ class ConvertType extends Command implements CompletionAwareInterface {
|
|||
$output->writeln('<comment>can be included by specifying the --all-apps option.</comment>');
|
||||
}
|
||||
|
||||
$continueConversion = !$input->isInteractive(); // assume yes for --no-interaction and no otherwise.
|
||||
$question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', $continueConversion);
|
||||
|
||||
/** @var QuestionHelper $helper */
|
||||
$helper = $this->getHelper('question');
|
||||
$question = new ConfirmationQuestion('Continue with the conversion (y/n)? [n] ', false);
|
||||
|
||||
if (!$helper->ask($input, $output, $question)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue