continued refactoring, added more tests, better error handling

This commit is contained in:
2022-10-02 14:22:31 +02:00
parent 66c4b68036
commit e6723a6951
9 changed files with 244 additions and 41 deletions

View File

@@ -10,12 +10,12 @@ tablizer - Manipulate tabular output of other programs
Flags:
-c, --columns string Only show the speficied columns (separated by ,)
-d, --debug Enable debugging
-X, --extended Enable extended output
-h, --help help for tablizer
-M, --markdown Enable markdown table output
-n, --no-numbering Disable header numbering
-O, --orgtbl Enable org-mode table output
-o, --output string Output mode - one of: orgtbl, markdown, extended, ascii(default)
-X, --extended Enable extended output
-M, --markdown Enable markdown table output
-O, --orgtbl Enable org-mode table output
-s, --separator string Custom field separator
-v, --version Print program version
@@ -71,9 +71,14 @@ the original order.
The numbering can be suppressed by using the B<-n> option.
Finally the B<-d> option enables debugging output which is mostly
usefull for the developer.
?head2 OUTPUT MODES
There might be cases when the tabular output of a program is way too
large for your current terminal but you still need to see every
column. In such cases the B<-X> option (or B<-o extended> can be
column. In such cases the B<-o extended> or B<-X> option can be
usefull which enables I<extended mode>. In this mode, each row will be
printed vertically, header left, value right, aligned by the field
widths. Here's an example:
@@ -88,12 +93,9 @@ widths. Here's an example:
You can of course still use a regex to reduce the number of rows
displayed.
Beside normal ascii mode (the default) and extended mode there more
output modes available: B<orgtbl> which prints an Emacs org-mode table
and B<markdown> which prints a Markdown table.
Finally the B<-d> option enables debugging output which is mostly
usefull for the developer.
Beside normal ascii mode (the default) and extended mode there are
more output modes available: B<orgtbl> which prints an Emacs org-mode
table and B<markdown> which prints a Markdown table.
=head1 BUGS