-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sort option for schedule:list (#45198)
* Add sort option for schedule:list Currently, in order to see what's schedule will be run, I need to run schedule:list and eyeball the list to find the relevant ones. This PR adds an option to sort the list by the next due date. Before: ``` php artisan schedule:list 0 * * * * php artisan command-one .......... Next Due: 55 minutes from now 15 * * * * php artisan command-three ........ Next Due: 10 minutes from now 17 * * * * php artisan command-two .......... Next Due: 12 minutes from now ``` After: ``` php artisan schedule:list 15 * * * * php artisan command-three ........ Next Due: 10 minutes from now 17 * * * * php artisan command-two .......... Next Due: 12 minutes from now 0 * * * * php artisan command-one .......... Next Due: 55 minutes from now ``` * Add a test * fix styling * need to actually use the flag in the test * formatting Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
fbd39d9
commit 28d07f0
Showing
2 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters