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

switch for parsable output #65

Open
Licenser opened this issue Jul 5, 2017 · 3 comments
Open

switch for parsable output #65

Licenser opened this issue Jul 5, 2017 · 3 comments

Comments

@Licenser
Copy link

Licenser commented Jul 5, 2017

Many CLI programs use -H for headerless and -p for passable when it comes to printing tables. Reading the docs, I think that could be done by specifying a custom format, but it would be helpful to have a simple switch for those options.

@phsym
Copy link
Owner

phsym commented Feb 19, 2018

What about printing the table into CSV instead ?

@phsym
Copy link
Owner

phsym commented Feb 19, 2018

(Sorry for the late reply by the way)

@andoriyu
Copy link

andoriyu commented Mar 1, 2018

@phsym Well, still need to take care of header, no? That part can be handled with slices I believe.

Plus, parsable output usually tab separated to allow consumption from within shell scripts without thinking about quotes. Having to_csv_string shortcut similar to from_csv_string would be a fine addition to my collection api.

However, parsable output needed for things that usually came from the iterator, so -H can completely ignore Table and just output it itself, at least that how I've done.

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

No branches or pull requests

3 participants