db-command
db-command copied to clipboard
Implement exclude revision flag to remove revision results from the search
This PR implements the exclude_revisions flag for wp db search command. This flag allows users to exclude revisions from the search results.
PR fixes following issues:
- #156
Usage
wp db search <search> [--tables=<tables>] [--exclude_revisions]
@imrraaj Also can you please add Behat test for this new feature? Ref - https://make.wordpress.org/cli/handbook/contributions/pull-requests/#functional-tests
@ernilambar I'll do the necessary changes and I'll add the tests for the same
I hope you merge this into the new version of the WP CLI soon. I am still looking for a workaround to exclude revisions while exporting the database, but I can't find it yet.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:loudspeaker: Thoughts on this report? Let us know!