Skip to content

Conversation

@rutviksavsani
Copy link
Contributor

@rutviksavsani rutviksavsani commented May 24, 2023

Fix #55

  • This pull request adds the --exclude flag to the wp cron event run command.
  • The flag accepts a list of comma separated hooks that will be excluded from the list of events.

Working:

  • Without the exclude flag

image

  • With the exclude flag

image

@rutviksavsani rutviksavsani requested a review from a team as a code owner May 24, 2023 13:48
@danielbachhuber danielbachhuber changed the title Add exclude flag in wp cron event run command. Add --exclude=<hooks> argument to wp cron event run May 25, 2023
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start! Just a couple nits to address.

@wojsmol
Copy link
Contributor

wojsmol commented May 25, 2023

@rutviksavsani Please update Issue: #55 to Fix #55 so Github will auto close related issue on PR merge.

rutviksavsani and others added 2 commits May 25, 2023 18:48
Co-authored-by: Daniel Bachhuber <daniel@bachhuber.co>
@rutviksavsani
Copy link
Contributor Author

Hi @danielbachhuber
I have addressed the feedback as suggested.
Thanks!

@danielbachhuber
Copy link
Member

I have addressed the feedback as suggested.

@rutviksavsani Awesome, thanks! I added one more test with f879760

Nice work on this 😊

@danielbachhuber danielbachhuber added this to the 2.2.2 milestone May 25, 2023
@danielbachhuber danielbachhuber merged commit c63ac49 into wp-cli:main May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: cron event --exclude

3 participants