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
because the length is already calculated / formatted correctly but is very unhandy to check/read while numbers are left-aligned like here:
root@test-server ~ # sudo -u www-data -s -- wp db size --path=/path/to/wordpress/staging/current --tables +-----------------------+--------------+ | Name | Size | +-----------------------+--------------+ | wp_commentmeta | 49152 B | | wp_comments | 98304 B | | wp_links | 32768 B | | wp_options | 4751360 B | | wp_postmeta | 2267021312 B | | wp_posts | 46792704 B | | wp_term_relationships | 3178496 B | | wp_term_taxonomy | 507904 B | | wp_termmeta | 950272 B | | wp_terms | 573440 B | | wp_usermeta | 425984 B | | wp_users | 65536 B | +-----------------------+--------------+
As far I can see the table output is triggered in https://github.com/wp-cli/db-command/blob/master/src/DB_Command.php#L875-L876
and uses Formatter object/functions (without orderby / include_totals) of this module: https://github.com/wp-cli/profile-command/blob/master/inc/class-formatter.php#L77
(but not sure - normally using no PHP as system administrator 😄)
The text was updated successfully, but these errors were encountered:
Looking at wp-cli/php-cli-tools#121 and wp-cli/php-cli-tools#120, it seems like it should be possible. Just a matter of making this available for this command (and others) via wp-cli/wp-cli.
wp-cli/wp-cli
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
because the length is already calculated / formatted correctly but is very unhandy to check/read while numbers are left-aligned like here:
As far I can see the table output is triggered in
https://github.com/wp-cli/db-command/blob/master/src/DB_Command.php#L875-L876
and uses Formatter object/functions (without orderby / include_totals) of this module:
https://github.com/wp-cli/profile-command/blob/master/inc/class-formatter.php#L77
(but not sure - normally using no PHP as system administrator 😄)
The text was updated successfully, but these errors were encountered: