diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-12-06 23:06:31 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-12-06 23:06:31 +0300 |
commit | de906b60f76f5983e5ee22c79b5d57d4bb144e99 (patch) | |
tree | bfa0d316944a6783bf57a679d008af9d1a56e94a | |
parent | 05852332f2a693b0cc313152fcb742fc063aa995 (diff) | |
parent | 838ac4a7d153e508268a030c542e2fa2a8b301ee (diff) |
Merge pull request #9333 from ekooiker/9316_delete-logs-data_and_no-interaction
askForDeleteConfirmation with --no-interaction should default to true
-rw-r--r-- | plugins/CoreAdminHome/Commands/DeleteLogsData.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Commands/DeleteLogsData.php b/plugins/CoreAdminHome/Commands/DeleteLogsData.php index df4141edbb..a504ed2c9c 100644 --- a/plugins/CoreAdminHome/Commands/DeleteLogsData.php +++ b/plugins/CoreAdminHome/Commands/DeleteLogsData.php @@ -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 +} |