wp-cli / extension-command

Manages plugins and themes, including installs, activations, and updates.
MIT License
90 stars 79 forks source link

Include optional 'auto_updates' field in plugin and theme lists #350

Closed endriu84 closed 1 year ago

endriu84 commented 1 year ago

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!

endriu84 commented 1 year ago

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