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