[PATCH 0/7] vsh-table: clean up, add support for column modes and fix 'virsh nodememstats' alignment with the new code

Peter Krempa via Devel posted 7 patches 1 day, 19 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1776438504.git.pkrempa@redhat.com
tests/vshtabletest.c                         |  68 +++++++++++
tests/vshtabletestdata/testRowsWithFlags.out |  24 ++++
tools/virsh-host.c                           |  17 ++-
tools/vsh-table.c                            | 113 ++++++++++++++-----
tools/vsh-table.h                            |  14 +++
5 files changed, 208 insertions(+), 28 deletions(-)
create mode 100644 tests/vshtabletestdata/testRowsWithFlags.out
[PATCH 0/7] vsh-table: clean up, add support for column modes and fix 'virsh nodememstats' alignment with the new code
Posted by Peter Krempa via Devel 1 day, 19 hours ago
The output of virsh nodememstats was misaligned after recent addition.

Add new modes to vshTable and use it.

Peter Krempa (7):
  vsh-table: Refactor cleanup in 'vshTableRowNew'
  vsh-table: Refactor 'vshTableRowAppend'
  vsh-table: Refactor 'vshTableNew'
  vshTableGetColumnsWidths: Include spacing in lenght calculation
  vsh-table: Add support for right-align and skipping the embedded
    whitespace
  tests: vshtable: Excercise all flag combinations in
    vshTableRowAppendFlags
  virsh: cmdNodeMemStats: Rework to vshTable

 tests/vshtabletest.c                         |  68 +++++++++++
 tests/vshtabletestdata/testRowsWithFlags.out |  24 ++++
 tools/virsh-host.c                           |  17 ++-
 tools/vsh-table.c                            | 113 ++++++++++++++-----
 tools/vsh-table.h                            |  14 +++
 5 files changed, 208 insertions(+), 28 deletions(-)
 create mode 100644 tests/vshtabletestdata/testRowsWithFlags.out

-- 
2.53.0