Title: Option to suppress output? · Issue #65 · wp-cli/shell-command · GitHub
Open Graph Title: Option to suppress output? · Issue #65 · wp-cli/shell-command
X Title: Option to suppress output? · Issue #65 · wp-cli/shell-command
Description: Feature Request Yes, I reviewed the contribution guidelines. 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...
Open Graph Description: Feature Request Yes, I reviewed the contribution guidelines. When dealing with complex queries, WP Shell often dumps large volumes of data on to my screen. For example, running a query with 'posts_...
X Description: Feature Request Yes, I reviewed the contribution guidelines. When dealing with complex queries, WP Shell often dumps large volumes of data on to my screen. For example, running a query with 'po...
Opengraph URL: https://github.com/wp-cli/shell-command/issues/65
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Option to suppress output?","articleBody":"## Feature Request\r\n\r\n- [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\r\n\r\nWhen dealing with complex queries, WP Shell often dumps large volumes of data on to my screen. \r\n\r\nFor 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.\r\n\r\n**Describe the solution you'd like**\r\n\r\nI'd like a command-line option so that `wp shell --no-output` will only display what I explicitly echo.\r\n\r\nCurrent version:\r\n\r\n> `wp shell`\r\n> `wp> $a = \"hello\";`\r\n> `=> string(5) \"hello\"`\r\n\r\nProposed version:\r\n\r\n> `wp shell --no-output`\r\n> `wp> $a = \"hello\";`\r\n> `wp>`","author":{"url":"https://github.com/edent","@type":"Person","name":"edent"},"datePublished":"2023-10-02T08:12:28Z","url":"https://github.com/wp-cli/shell-command/issues/65"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e3906d74-6cf0-7013-be0b-ca587cfec978 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1B4:1EDECA:51A62D7:6BD7B3B:6AFA23F2 |
| html-safe-nonce | 01d18459b3f18f7ceece00dccf034fd70d54e6d62173393e6ddf24ab94c2ebe5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUI0OjFFREVDQTo1MUE2MkQ3OjZCRDdCM0I6NkFGQTIzRjIiLCJ2aXNpdG9yX2lkIjoiNDc0MDUwNDM3MjAwODgwNjI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aef320f181a2428a104f6e7a4c31476d2c44032e629c9b1fbf1b0097bc52be94 |
| hovercard-subject-tag | issue:1921447795 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/shell-command/65/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53101c828eb48e38eaf2e9b062c3c8ab66805afc8591b0512cf61b87b7378ee1/wp-cli/shell-command/issues/65 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53101c828eb48e38eaf2e9b062c3c8ab66805afc8591b0512cf61b87b7378ee1/wp-cli/shell-command/issues/65 |
| og:image:alt | Feature Request Yes, I reviewed the contribution guidelines. When dealing with complex queries, WP Shell often dumps large volumes of data on to my screen. For example, running a query with 'posts_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | edent |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/wp-cli/shell-command git https://github.com/wp-cli/shell-command.git |
| octolytics-dimension-user_id | 1570774 |
| octolytics-dimension-user_login | wp-cli |
| octolytics-dimension-repository_id | 85307675 |
| octolytics-dimension-repository_nwo | wp-cli/shell-command |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85307675 |
| octolytics-dimension-repository_network_root_nwo | wp-cli/shell-command |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width