wp-cli / extension-command

Manages plugins and themes, including installs, activations, and updates.
MIT License
90 stars 79 forks source link

Only show nested theme mod values when formatting as table #283

Closed kimgrytoyr closed 2 years ago

kimgrytoyr commented 3 years ago

Fixes #96.

This PR adds a check to see if the requested format is something else than table. If it is, the keys and values will be presented as-is. If it's table, the pretty-printing of (the first level of) nested values will happen, as before.

Sidsector9 commented 2 years ago

Thanks for the PR @kimgrytoyr! Can you update the tests for them as well?

danielbachhuber commented 2 years ago

Proceeding with https://github.com/wp-cli/wp-cli/issues/5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/4194e7f7bca22b80f3033cfe5d11fd3d in case this PR is auto-closed or broken in some way.