Give commands proper exit codes.

This commit is contained in:
James Cole
2018-07-22 10:05:06 +02:00
parent 1f0fdf3da7
commit d193a6aec4
6 changed files with 18 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ class UpgradeFireflyInstructions extends Command
/**
* Execute the console command.
*/
public function handle(): void
public function handle(): int
{
if ('update' === $this->argument('task')) {
$this->updateInstructions();
@@ -54,6 +54,7 @@ class UpgradeFireflyInstructions extends Command
if ('install' === $this->argument('task')) {
$this->installInstructions();
}
return 0;
}
/**