Skip to content

Commit 22a9691

Browse files
authored
Skip confirmation prompt when install --force is used (#599)
1 parent d67b9fa commit 22a9691

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/MahoCLI/Commands/Install.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -340,21 +340,6 @@ private function handleForceInstall(InputInterface $input, OutputInterface $outp
340340
{
341341
$output->writeln('<comment>Force installation requested - clearing existing installation...</comment>');
342342

343-
// Check if we're not in interactive mode or user has confirmed
344-
if ($input->isInteractive()) {
345-
/** @var \Symfony\Component\Console\Helper\QuestionHelper $helper */
346-
$helper = $this->getHelper('question');
347-
$question = new \Symfony\Component\Console\Question\ConfirmationQuestion(
348-
"\n<question>WARNING: This will clear all tables in the database and remove configuration. Continue? [y/N]</question> ",
349-
false,
350-
);
351-
352-
if (!$helper->ask($input, $output, $question)) {
353-
$output->writeln('<comment>Operation cancelled.</comment>');
354-
return false;
355-
}
356-
}
357-
358343
// Remove local.xml if it exists (use hardcoded path since Mage isn't initialized yet)
359344
$localXmlPath = getcwd() . '/app/etc/local.xml';
360345
if (file_exists($localXmlPath)) {

0 commit comments

Comments
 (0)