Skip to content

Commit

Permalink
Fixes acquia#1719: Robo feature request: total "setup" time.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 27, 2017
1 parent c7265f6 commit fd5dbe3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/blt-robo-run.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
use Acquia\Blt\Robo\Config\DefaultConfig;
use Symfony\Component\Console\Output\ConsoleOutput;

// Start Timer.
$timer = new \Robo\Common\TimeKeeper();
$timer->start();

// Initialize input and output.
$input = new ArgvInput($_SERVER['argv']);
$output = new ConsoleOutput();

// Initialize configuration.
$config = new DefaultConfig($repo_root);
$loader = new YamlConfigLoader();
$processor = new YamlConfigProcessor();
Expand All @@ -25,6 +31,14 @@
$config->import($processor->export());
$config->populateHelperConfig();

// Execute command.
$blt = new Blt($config, $input, $output);
$status_code = (int) $blt->run($input, $output);

// Stop timer.
$timer->stop();
if ($output->isVerbose()) {
$output->writeln("<comment>" . $timer->formatDuration($timer->elapsed()) . "</comment> total time elapsed.");
}

exit($status_code);

0 comments on commit fd5dbe3

Please sign in to comment.