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

Plain-text block output style option #15

Merged
merged 6 commits into from
Mar 3, 2020
Merged

Conversation

hpainter
Copy link
Contributor

Adds a new output_style configuration option that allows for the results to be printed using either the default Terminal::Table utility or as plain text blocks.

I wanted something similar to what you get with the extended output option in psql/mysql clients, for better readability of the results when running on a CI host or in a narrow terminal window. So this just moves the detailed file-specific output logic into separate generator methods, one for the default table style and one for the new 'block' style. Includes test + README updates.

@chetan
Copy link
Owner

chetan commented Feb 28, 2020

@hpainter thanks for the contribution!

Looks good so far, but looks like you're still pushing some commits. Let me know when it's good to go and I'll give it a look.

@hpainter
Copy link
Contributor Author

hpainter commented Mar 2, 2020

Should be good now...just wanted to fix some line spacing oddities

Copy link
Owner

@chetan chetan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chetan chetan merged commit 10ed6d0 into chetan:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants