hmazter / laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands
MIT License
94 stars 14 forks source link

Remove command strings via config #19

Closed mcampbell508 closed 6 years ago

mcampbell508 commented 6 years ago

This change allows users to specify certain strings to remove from a scheduled Artisan command.

The use case for this I see is when using the \Hmazter\LaravelScheduleList\ScheduleList::all functionality to programatically retrieve the schedule, and display it via a web browser rather than the console.

Unfortunately, when I tried to do this, the PHP_BINARY constant is equal to '', which is used in the code itself to remove certain parts of the full command string.

This means all command descriptions are set to empty strings before this PR.

This change allows end users to specify their own overrides for this if they need to.

Thanks for a very useful package!

hmazter commented 6 years ago

Thanks for the PR, I will look at it more thoroughly later this weekend or Monday.