Open SteveRyan-ASU opened 2 years ago
At the suggestion of @greg-1-anderson, I also downgraded Terminus to v.2.6.x all of the other v3.0.x releases individually and reran the same commands. Similar results, still an unformatted table.
From Slack another helpful comment from @greg-1-anderson:
... someone noted that table formatting did appear when running
btool wp
(a Pantheon internal tool that runs in a privileged mode). Btool runs with a tty, so I suspect that wp-cli 2.6.0 added tty detection, and downgrades the formatting when a tty is not present.
Nothing in the release notes from v2.6.0 immediately jumped out as "we changed a tty setting" but I'm pretty far out of my element here. LOL.
We also tracked down the following WP-CLI doc which suggested that there's a way to pass an environment variable to WP-CLI to ensure that results are formatted when passing them through a pipe.
That's all I got. 😁
Platform
[x] MacOS
Installed Via
[x] Composer
PHP Version
[X] 7.4x
Command Executed
terminus wp {site}.{env} -- plugin list
terminus wp {site}.{env} -- theme list --format=table
Expected behavior
When running commands using WP-CLI, typically results are returned with the ASCII table formatting in tact. However, this format is now missing from all returned results. Specifying
--format=table
has no effect.Actual behavior
With the -vvv option enabled:
Also tested with other sites using different themes/plugins, similar results. Also tested with other WP-CLI commands that produced formatted tables by default. Similar results.