Permalink
Browse files

added 'hh:mm:ss' info when using dump command

  • Loading branch information...
1 parent a771e48 commit 4c35fa9b2d8b054e8b581703c6dc0729726e9152 @brikou brikou committed Apr 13, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 Command/DumpCommand.php
View
@@ -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 4c35fa9

Please sign in to comment.