Skip to content
Extraits de code Groupes Projets
Valider de906b60 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

Merge pull request #9333 from ekooiker/9316_delete-logs-data_and_no-interaction

askForDeleteConfirmation with --no-interaction should default to true
parents 05852332 838ac4a7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -168,6 +168,10 @@ class DeleteLogsData extends ConsoleCommand
private function askForDeleteConfirmation(InputInterface $input, OutputInterface $output)
{
if ($input->getOption('no-interaction')) {
return true;
}
$helper = $this->getHelper('question');
$question = new ConfirmationQuestion('<comment>You are about to delete log data. This action cannot be undone, are you sure you want to continue? (Y/N)</comment> ', false);
......@@ -194,4 +198,4 @@ class DeleteLogsData extends ConsoleCommand
$this->writeSuccessMessage($output, array("Table optimization finished."));
}
}
\ No newline at end of file
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter