Skip to content

Conversation

@endriu84
Copy link
Contributor

@endriu84 endriu84 commented Feb 6, 2023

Fixes #344

This pull request adds an optional field to the wp plugin list and wp theme list command. With this change, users can now display the auto_updates column when listing plugins or themes by using the --field option, like this:

wp plugin list --field=name,auto_updates or
wp theme list --field=name,auto_updates --format=json

I've also updated the test suite with a test case for this scenario.

Note: This is my first contribution to this project. I'd greatly appreciate any feedback or suggestions on how I can improve my code and my contribution process. Thank you for considering this pull request!

@danielbachhuber danielbachhuber changed the title add optional 'auto_updates' field to item lists - issue #344 Include optional 'auto_updates' field in plugin and theme lists Feb 7, 2023
@danielbachhuber danielbachhuber self-requested a review February 7, 2023 15:40
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 work on this, @endriu84 ! I appreciate you taking the time to write tests, too 😊

Looks pretty solid all of the way through. I made a few tweaks you might like to look through.

@danielbachhuber danielbachhuber merged commit 1a1af1d into wp-cli:main Feb 7, 2023
@endriu84
Copy link
Contributor Author

endriu84 commented Feb 7, 2023

Thank You @danielbachhuber for your review and tweaks. It feels great to have my small contribution merged into the project.

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.

Include additional column (field) "auto-updates" which can be on or off

2 participants