chiark / gitweb /
systemctl: make list-unit-files output more economical
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Oct 2011 09:49:59 +0000 (11:49 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 24 Oct 2011 17:40:05 +0000 (19:40 +0200)
commit1c0a113fd3fe3344b2c947ca9948760057052716
tree910858cae07e087ce7d210a0b680009eb6fc8416
parent74eeab044e506a39786f484b160d9f64d48ad243
systemctl: make list-unit-files output more economical

The first column is given the width of the widest entry,
if possible, otherwise all entries are ellipsized to fit
in ($COLUMNS - (width of second column)).

[ Added a few fixes, calculate state_cols too, respect '--no-legend',
  better handling of '--full' -- michich ]
src/systemctl.c