wp-cli / handbook

📖 Complete documentation for WP-CLI
https://make.wordpress.org/cli/handbook/
MIT License
188 stars 328 forks source link

Fixed incomplete docs on ASCII formatting. #415

Closed sun closed 1 year ago

sun commented 2 years ago

Problem

Proposed solution

  1. Clarify docs for how to retain ASCII table formatting with the db command.
  2. Clarify docs for how to use the env variable, because not all users understand how env variables are specified; the only correct example I found was in the original issue https://github.com/wp-cli/wp-cli/issues/1102.
codepuncher commented 1 year ago

I have found that SHELL_PIPE is also ignored when using a command such as wp @production db size --human-readable --all-tables

schlessera commented 1 year ago

Thanks for the PR, @sun ! I'll move them over to the generated docs now.

schlessera commented 1 year ago

@danielbachhuber :

Although, do you think we should fix wp db query's behavior instead, and make sure the SHELL_PIPE variable is passed through?

The mysql command does not understand that, and the provided work-around is not a full replacement.