-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP CLI instant results template commands #3216
WP CLI instant results template commands #3216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oscarssanchez In addition to the points I've commented on, can we please standardize the commands' descriptions (some have Instant Results in lowercase, some don't mention it, etc.)? Thanks!
includes/classes/Command.php
Outdated
$template = json_decode( $instant_results->epio_get_search_template() ); | ||
|
||
$this->pretty_json_encode( $template, $assoc_args['pretty'] ); | ||
WP_CLI::success( esc_html__( 'Done', 'elasticpress' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These output commands shouldn't have a "Done" in the end, so people can simply save its output in a JSON file without breaking it. Can we remove it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Addressed here 89710cf @felipeelia
Description of the Change
This PR implements #3150
How to test the Change
Test the three new commands:
Changelog Entry
Credits
Props @oscarssanchez
Checklist: