Skip to content
New issue

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

cli: use pretty-formatted tables only with terminals or --pretty. #7268

Merged
merged 1 commit into from Jun 16, 2016

Commits on Jun 16, 2016

  1. cli: use pretty-formatted tables only with terminals or --pretty.

    Prior to this patch all commands reporting table results would
    print them using ASCII art tables (pretty-formatted). This makes
    the output difficult to parse in automated scripts etc.
    
    This patch corrects the behavior by using TSV output when the command
    is not used from an interactive terminal. The pretty-formatted output
    can be forced for non-terminal use using the command-line argument
    `--pretty`.
    knz committed Jun 16, 2016
    Copy the full SHA
    2af5d19 View commit details
    Browse the repository at this point in the history