Skip to content

Commit

Permalink
Do not 'exit' from Runner::execute.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Feb 25, 2016
1 parent 94d1200 commit 710a3e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion robo
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ if (strpos(basename(__FILE__), 'phar')) {
}
}
$runner = new \Robo\Runner();
$runner->execute();
$exitCode = $runner->execute();
exit($exitCode);

3 changes: 2 additions & 1 deletion src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public function execute($input = null)
return;
}
$app->addCommandsFromClass($this->roboClass, $this->passThroughArgs);
$app->run($input);
$app->setAutoExit(false);
return $app->run($input);
}

/**
Expand Down

0 comments on commit 710a3e1

Please sign in to comment.