Re: [pve-devel] [PATCH common v3 2/3] add print_text_table, print_entry to CLIHandler

2018-06-14 Thread Thomas Lamprecht
On 6/12/18 12:41 PM, Stoiko Ivanov wrote: > These two function could serve as a generic output sub for various CLI > utilities > * print_text_table prints an array of objects in a tabular fashion, >the formating is passed as an array containg hashes with titles, maximal >lengths and

[pve-devel] [PATCH common v3 2/3] add print_text_table, print_entry to CLIHandler

2018-06-12 Thread Stoiko Ivanov
These two function could serve as a generic output sub for various CLI utilities * print_text_table prints an array of objects in a tabular fashion, the formating is passed as an array containg hashes with titles, maximal lengths and default values. This way we can stay extensible, by