Skip to content

Commit dc27cf8

Browse files
authored
Merge pull request #1562 from ekyna/master
ResetTemplates and Populate commands improvements.
2 parents ca8dedf + e153a34 commit dc27cf8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Command/PopulateCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,5 +279,6 @@ private function refreshIndex(OutputInterface $output, $index)
279279
{
280280
$output->writeln(sprintf('<info>Refreshing</info> <comment>%s</comment>', $index));
281281
$this->indexManager->getIndex($index)->refresh();
282+
$output->writeln("");
282283
}
283284
}

src/Command/ResetTemplatesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6868
$indexTemplate = $input->getOption('index');
6969
$deleteByPattern = $input->getOption('force-delete');
7070

71-
if ($deleteByPattern) {
71+
if ($input->isInteractive() && $deleteByPattern) {
7272
$helper = $this->getHelper('question');
7373
$question = new ConfirmationQuestion('You are going to remove all template indexes. Are you sure?', false);
7474

0 commit comments

Comments
 (0)