cf client - Extended cli Table implementation.


Kupries, Andreas <andreas.kupries@...>
 

Hello.

At
https://github.com/andreas-kupries/cli/tree/hcf-466-cli-extended-table
is a fork of the CF client containing a rewrite of the
cf/terminal/table.go
implementation to overcome a few limitations of the existing code I came across while writing some plugins.

The list of features I added are:
- Allows multi-line cell content.
- Ability to suppress header row from output.
- General column transformation scheme for arbitrary colorization, vertical separators, and the like
Some internal changes:
- Use of go buffers over strings (less memory churn due to string immutability)
- Generates less output, trims superfluous trailing whitespace.

Is this something of interest to the CF cli team ?

Andreas Kupries
System/Software Engineer
HP Cloud

andreas.kupries(a)hpe.com
T +1 778 327 6590
Hewlett-Packard Company
1700-409 Granville St
Vancouver, BC, V6C 1T2
Canada