wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 59 forks source link

Adds `--human-readable` parameter to `db size` command #124

Closed pmgarman closed 5 years ago

pmgarman commented 6 years ago

Solves #108

swissspidy commented 6 years ago

WordPress core has a size_format() function. Can we perhaps add a similar helper function to WP-CLI, maybe as part of the Utils lib?

schlessera commented 6 years ago

Tests currently failing because of #125

schlessera commented 5 years ago

Thanks for the PR, @pmgarman !