hmazter / laravel-schedule-list

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

Handle scheduled Closures and Jobs #24

Closed hmazter closed 6 years ago

hmazter commented 6 years ago

Fixes #23 by showing "Closure" as the command for scheduled Closures and Jobs

This would be the output:

+------------+---------------------+-------------------+----------------------------------------+
| expression | next run at         | command           | description                            |
+------------+---------------------+-------------------+----------------------------------------+
| 0 10 * * * | 2018-09-23 10:00:00 | test:command:name | Description of event                   |
| 0 10 * * * | 2018-09-23 10:00:00 | test:command:two  | Description of test command            |
| 0 3 * * 1  | 2018-09-24 03:00:00 | ls -lah           |                                        |
| 0 13 * * * | 2018-09-23 13:00:00 | Closure           | A description for a scheduled callback |
| 0 14 * * * | 2018-09-23 14:00:00 | Closure           | TestJob                                |
+------------+---------------------+-------------------+----------------------------------------+
mfn commented 6 years ago

The output LGMT (as in: it can't get better) 👍