Permalink
Browse files

Merge pull request #78 from brikou/watch_timeinfo

added 'hh:mm:ss' info when using dump command
  • Loading branch information...
2 parents a771e48 + 4c35fa9 commit d370e914e86518e88aa00ab266796ee032b8262e @kriswallsmith kriswallsmith committed Apr 13, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 Command/DumpCommand.php
@@ -195,13 +195,21 @@ private function doDump(AssetInterface $asset, OutputInterface $output)
PathUtils::resolvePath($asset->getTargetPath(), $asset->getVars(),
$asset->getValues()));
if (!is_dir($dir = dirname($target))) {
- $output->writeln('<info>[dir+]</info> '.$dir);
+ $output->writeln(sprintf(
+ '<comment>%s</comment> <info>[dir+]</info> %s',
+ date('H:i:s'),
+ $dir
+ ));
if (false === @mkdir($dir, 0777, true)) {
throw new \RuntimeException('Unable to create directory '.$dir);
}
}
- $output->writeln('<info>[file+]</info> '.$target);
+ $output->writeln(sprintf(
+ '<comment>%s</comment> <info>[file+]</info> %s',
+ date('H:i:s'),
+ $target
+ ));
if ($this->verbose) {
if ($asset instanceof \Traversable) {
foreach ($asset as $leaf) {

0 comments on commit d370e91

Please sign in to comment.