Skip to content

Add format option to wp plugin|theme auto-updates status#351

Merged
danielbachhuber merged 2 commits intowp-cli:mainfrom
mrsdizzie:auto-updates-format
Feb 8, 2023
Merged

Add format option to wp plugin|theme auto-updates status#351
danielbachhuber merged 2 commits intowp-cli:mainfrom
mrsdizzie:auto-updates-format

Conversation

@mrsdizzie
Copy link
Member

Add --format option to wp (plugin|theme) auto-updates status as requested by user here: https://wordpress.slack.com/archives/C02RP4T41/p1675804802225149

I looked at replacing direct use of Formatter with https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-format-items/ but it does not seem to support the singular --field option

https://github.com/wp-cli/wp-cli/blob/89be15b87bb3c496841b2362975fe0d8ddd8ed21/php/utils.php#L334-L338

@mrsdizzie mrsdizzie requested a review from a team as a code owner February 8, 2023 15:33
@mrsdizzie mrsdizzie force-pushed the auto-updates-format branch from adde41b to 4f25599 Compare February 8, 2023 18:10
@danielbachhuber danielbachhuber added command:plugin-auto-updates-status Related to 'plugin auto-updates status' command command:theme-auto-updates-status Related to 'theme auto-updates status' command labels Feb 8, 2023
@danielbachhuber danielbachhuber added this to the 2.1.10 milestone Feb 8, 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.

Thanks @mrsdizzie ! Made one PHPCS tweak

@danielbachhuber danielbachhuber merged commit 1305b2b into wp-cli:main Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:plugin-auto-updates-status Related to 'plugin auto-updates status' command command:theme-auto-updates-status Related to 'theme auto-updates status' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants