10up / wpsnapshots

(DEPRECATED) A project sharing tool for WordPress.
MIT License
216 stars 21 forks source link

Search: --format option and search for multiple queries #70

Closed eugene-manuilov closed 4 years ago

eugene-manuilov commented 4 years ago

Description of the Change

Updated search command to allow searching using multiple queries and added --format option that supports json and table options. Multiple queries search is important for the new version of wp-local-docker because it will help to get information about multiple snapshots using just one command. The --format option is added for the same reason - to simplify integration with the new version of wp-local-docker.

Alternate Designs

Benefits

Possible Drawbacks

Verification Process

Run the following command to get information about two snapshots using their ids:

wpsnapshots search b719bef1c09e0d2f654aa52008307a20 5639b553a97c74f54af0ecf2ae85f7a9

Same command but with json output:

wpsnapshots search b719bef1c09e0d2f654aa52008307a20 5639b553a97c74f54af0ecf2ae85f7a9 --format=json

Checklist:

Applicable Issues

Changelog Entry

tlovett1 commented 4 years ago

@eugene-manuilov thanks for creating this! Can you update the docs with the changes?

eugene-manuilov commented 4 years ago

@tlovett1, updated, does it look good now?

tlovett1 commented 4 years ago

Works well.