vppinfra: format table improvements 47/33747/4
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Fri, 17 Sep 2021 12:32:03 +0000 (14:32 +0200)
committerDamjan Marion <dmarion@me.com>
Mon, 20 Sep 2021 11:26:03 +0000 (11:26 +0000)
commit8430b8de1df1b0732beab9534a7a91fc8c7b3c7d
tree65d0d9b3c639f0b0f0c8a56215513d2ddbe7929c
parent41b23bc9554a134aee37b430ebf5553cc3260624
vppinfra: format table improvements

This adds a way to define default fg, bg colors
and alignement for cell tables.
It also allows removing the table title by not
setting it.
It also removes the trailing newline, for usage
inside a format("%U", format_table, ...)

Type: improvement

Change-Id: I27d7a04c4a919b34d0170b04e24a56831f581ea1
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/vppinfra/format_table.c
src/vppinfra/format_table.h