From 23c96510d801b0a213692ba5fec89fc23bbaad8d Mon Sep 17 00:00:00 2001 From: matteosister Date: Wed, 19 Sep 2012 12:48:05 +0200 Subject: [PATCH] colorized output for the foq:elastica:populate command --- Command/PopulateCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Command/PopulateCommand.php b/Command/PopulateCommand.php index ba6affd..53ee7ee 100755 --- a/Command/PopulateCommand.php +++ b/Command/PopulateCommand.php @@ -91,7 +91,7 @@ class PopulateCommand extends ContainerAwareCommand private function populateIndex(OutputInterface $output, $index, $reset) { if ($reset) { - $output->writeln(sprintf('Resetting: %s', $index)); + $output->writeln(sprintf('Resetting %s', $index)); $this->resetter->resetIndex($index); } @@ -99,13 +99,13 @@ class PopulateCommand extends ContainerAwareCommand foreach ($providers as $type => $provider) { $loggerClosure = function($message) use ($output, $index, $type) { - $output->writeln(sprintf('Populating: %s/%s, %s', $index, $type, $message)); + $output->writeln(sprintf('Populating %s/%s, %s', $index, $type, $message)); }; $provider->populate($loggerClosure); } - $output->writeln(sprintf('Refreshing: %s', $index)); + $output->writeln(sprintf('Refreshing %s', $index)); $this->indexManager->getIndex($index)->refresh(); }