Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Add tty option so that colors come through.
Browse files Browse the repository at this point in the history
  • Loading branch information
dersam committed Mar 17, 2016
1 parent bc6b0cd commit 31d9486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/LinusShops/Prophet/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

class Command extends \Symfony\Component\Console\Command\Command
{
protected function shell($command, $workingDirectory = '.')
protected function shell($command, $workingDirectory = '.', $asTty = false)
{
$process = new Process($command, $workingDirectory, null, null, null);
$process->setTty($asTty);
return $process->run(function ($type, $buffer) {
echo $buffer;
}) == 0;
Expand Down
2 changes: 1 addition & 1 deletion src/LinusShops/Prophet/Commands/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function runTestFramework($framework, $modulePath, $magentoPath)
}

$cmd = "php {$path} ".PROPHET_ROOT_DIR." {$modulePath} {$magentoPath}";
$this->shell($cmd);
$this->shell($cmd, '.', true);

return true;
}
Expand Down

0 comments on commit 31d9486

Please sign in to comment.