We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When dealing with complex queries, WP Shell often dumps large volumes of data on to my screen.
For example, running a query with 'posts_per_page'=> 200, will result in hundreds of blog posts being printed. But I only want, say, the GUID.
'posts_per_page'=> 200,
Describe the solution you'd like
I'd like a command-line option so that wp shell --no-output will only display what I explicitly echo.
wp shell --no-output
Current version:
wp shell wp> $a = "hello"; => string(5) "hello"
wp shell
wp> $a = "hello";
=> string(5) "hello"
Proposed version:
wp shell --no-output wp> $a = "hello"; wp>
wp>
The text was updated successfully, but these errors were encountered:
We could potentially repurpose the --quiet global argument for this.
--quiet
Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices.
Sorry, something went wrong.
Thanks. Am I right in thinking the functionality just needs to be altered in:
shell-command/src/WP_CLI/Shell/REPL.php
Line 39 in f470d04
@edent That might be it!
No branches or pull requests
Feature Request
When dealing with complex queries, WP Shell often dumps large volumes of data on to my screen.
For example, running a query with
'posts_per_page'=> 200,
will result in hundreds of blog posts being printed. But I only want, say, the GUID.Describe the solution you'd like
I'd like a command-line option so that
wp shell --no-output
will only display what I explicitly echo.Current version:
Proposed version:
The text was updated successfully, but these errors were encountered: