This repository has been archived by the owner on May 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Unified table output #14
Labels
enhancement
New feature or request
Comments
I'm currently implementing the unified output. (https://github.com/root360-AndreasUlm/tea/tree/unified_output_function) |
I'm OK. Since the PR title will be unified table output. |
IMO, there ideally should be at least one format that is:
That would cover the 3 most common use cases of CLI apps (automation, quick skimming of data, fast access to full data) |
@noerw thanks for the use-cases, I'll implement some of those |
root360-AndreasUlm
added a commit
to root360-AndreasUlm/tea
that referenced
this issue
Apr 28, 2019
Signed-off-by: Andreas Ulm <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
currently every function printing information handles the output format on its own.
That the format cannot be changed easily e.g. in case '\t' is not available (see discussion in #13) and is not unified.
IMHO a central function for handling output in different formats (e.g. table, JSON) would improve the output of all functions to look unified.
The central output functions could handle the delimiter.
A first idea is to add function to pring table based output which gets a dictionary like this:
With this information the table output function can generate a header and print the values.
As all values to be printed are known at this stage the output can even be vertically aligned.
Regards,
Andreas
The text was updated successfully, but these errors were encountered: