Skip to content

Commit

Permalink
1985 - Return status code for npm runner console.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 3, 2016
1 parent 3b0fa26 commit 73ba3a8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ protected function configure()
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @return void
* @return int|null
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$command = $this->getCommand();

$this->runCommand($command);
return $this->runCommand($command);
}

/**
Expand All @@ -113,7 +113,7 @@ protected function getCommand()
/**
* @param string $command
*
* @return void
* @return int|null
*/
protected function runCommand($command)
{
Expand All @@ -123,6 +123,8 @@ protected function runCommand($command)
$process->run(function ($type, $buffer) {
echo $buffer;
});

return $process->getExitCode();
}

/**
Expand Down

0 comments on commit 73ba3a8

Please sign in to comment.