Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sort option for schedule:list #45198

Merged
merged 5 commits into from Dec 7, 2022
Merged

Commits on Dec 6, 2022

  1. 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
    ```
    moshe-autoleadstar committed Dec 6, 2022
    Copy the full SHA
    125ac29 View commit details
    Browse the repository at this point in the history
  2. Add a test

    moshe-autoleadstar committed Dec 6, 2022
    Copy the full SHA
    c606174 View commit details
    Browse the repository at this point in the history
  3. fix styling

    moshe-autoleadstar committed Dec 6, 2022
    Copy the full SHA
    e727963 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    0f79978 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. formatting

    taylorotwell committed Dec 7, 2022
    Copy the full SHA
    52c5e52 View commit details
    Browse the repository at this point in the history