laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.84k stars 645 forks source link

Add exit code to horizon:forget command #1370

Closed bytestream closed 8 months ago

bytestream commented 8 months ago

When $this->error() is called it makes sense to return exit code 1 to show that the command did not complete successfully. The exit code is easier to detect programmatically in comparison to looking for $this->error() output.