Skip to content

Conversation

@alaminfirdows
Copy link
Contributor

@alaminfirdows alaminfirdows commented Aug 7, 2025

Summary

This PR adds support for the --format parameter to the wp core verify-checksums command, enabling structured output formats like plain, table, json, csv, yaml, count, and others.

It brings consistency with commands like plugin verify-checksums, improving automation and scripting support.

✅ Supported formats

  • plain (default)
  • table
  • json
  • csv
  • yaml
  • count

🧪 Test Guide

  • Run command in default format: wp core verify-checksums

  • Run with JSON output: wp core verify-checksums --format=json

  • Run with CSV output: wp core verify-checksums --format=csv

  • Trigger an error (e.g., modify a core file) to see results in all formats.

Notes

  • No breaking changes introduced.
  • Falls back to default table if --format is not specified.
  • Useful for CI scripts or plugin/tooling integrations.

Resolved: #94

@alaminfirdows alaminfirdows requested a review from a team as a code owner August 7, 2025 05:56
@ernilambar
Copy link
Member

@alaminfirdows Can you please make sure that tests are not failing? This should not be a breaking change I believe.

@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alaminfirdows
Copy link
Contributor Author

@ernilambar could you please check again?

@alaminfirdows
Copy link
Contributor Author

@swissspidy, @thelovekesh could you please review this?

We’re working on a tool based on this, and we’re eagerly waiting for this PR to be merged. It’s going to be a real game-changer for our users!

@alaminfirdows
Copy link
Contributor Author

@swissspidy @ernilambar I believe it’s ready for merging. I’ve completed all my parts.

@swissspidy swissspidy merged commit cc38427 into wp-cli:main Aug 18, 2025
42 checks passed
@swissspidy swissspidy added this to the 2.3.2 milestone Aug 18, 2025
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.

Add --format argument to wp core verify-checksums

3 participants