polycube icon indicating copy to clipboard operation
polycube copied to clipboard

CLI: how to print wide tables

Open acloudiator opened this issue 6 years ago • 0 comments

In some cases, the output contains so many columns and the terminal is not wide enough to fit it.

There is some logic to break the last column into multiple lines, however, it doesn't work in all the cases (when there are not white spaces #193), also if the last column is a small one it doesn't make sense to break it.

There are many ways to handle this problem

Create an improved breaking logic that is capable of breaking the best / better column(s) Print an error Print only the columns that fit and tell in some way to the user that there are some hidden columns Completely ignore the problem printing a misaligned table (current behavior) -Mauricio

acloudiator avatar Dec 18 '18 19:12 acloudiator