Skip to content

Retain ascii table formatting #1102

@dsawardekar

Description

@dsawardekar

I'm working on a Vim plugin for WordPress that integrates with WP-CLI. Certain wp-cli commands like wp plugin list return Ascii table formatted output. When I run these commands through Vim, with the system() call, the Ascii formatting gets lost. This happens even when I explicitly specify the --format=table option.

In other tests I noticed that the formatting also gets lost when piping to less or redirecting to a file. It seems there are conditionals that alter output based on the type of output stream wp-cli is writing to.

Is there a way to preserve the table formatting?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions