feat: add --format param for core checksums verification#140
Merged
swissspidy merged 21 commits intowp-cli:mainfrom Aug 18, 2025
Merged
feat: add --format param for core checksums verification#140swissspidy merged 21 commits intowp-cli:mainfrom
swissspidy merged 21 commits intowp-cli:mainfrom
Conversation
Member
|
@alaminfirdows Can you please make sure that tests are not failing? This should not be a breaking change I believe. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…h format parameter
… multiple file types
Contributor
Author
|
@ernilambar could you please check again? |
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! |
swissspidy
reviewed
Aug 15, 2025
swissspidy
reviewed
Aug 15, 2025
swissspidy
reviewed
Aug 15, 2025
swissspidy
reviewed
Aug 15, 2025
…s and format outputs
Contributor
Author
|
@swissspidy @ernilambar I believe it’s ready for merging. I’ve completed all my parts. |
ernilambar
reviewed
Aug 17, 2025
swissspidy
approved these changes
Aug 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for the --format parameter to the
wp core verify-checksumscommand, enabling structured output formats likeplain, table, json, csv, yaml, count, and others.It brings consistency with commands like plugin verify-checksums, improving automation and scripting support.
✅ Supported formats
🧪 Test Guide
Run command in default format:
wp core verify-checksumsRun with JSON output:
wp core verify-checksums --format=jsonRun with CSV output:
wp core verify-checksums --format=csvTrigger an error (e.g., modify a core file) to see results in all formats.
Notes
Resolved: #94