Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #164 from matteosister/command-color-output

colorized output for the foq:elastica:populate command
  • Loading branch information...
commit afe5369e058f674595b1a1da2cdb16dd09d9af4f 2 parents 46804a3 + 23c9651
@richardmiller richardmiller authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Command/PopulateCommand.php
View
6 Command/PopulateCommand.php
@@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
private function populateIndex(OutputInterface $output, $index, $reset)
{
if ($reset) {
- $output->writeln(sprintf('Resetting: %s', $index));
+ $output->writeln(sprintf('<info>Resetting</info> <comment>%s</comment>', $index));
$this->resetter->resetIndex($index);
}
@@ -99,13 +99,13 @@ private function populateIndex(OutputInterface $output, $index, $reset)
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('<info>Populating</info> %s/%s, %s', $index, $type, $message));
};
$provider->populate($loggerClosure);
}
- $output->writeln(sprintf('Refreshing: %s', $index));
+ $output->writeln(sprintf('<info>Refreshing</info> <comment>%s</comment>', $index));
$this->indexManager->getIndex($index)->refresh();
}
Please sign in to comment.
Something went wrong with that request. Please try again.