coredumpctl: modernize table output
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 15:40:44 +0000 (16:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Feb 2021 11:21:59 +0000 (12:21 +0100)
commit0689cfdb83f573f70188003a366f20968267be7f
treed4f893137578de09aa0b8b79cc81df8c419a9564
parent56909de01520b20bde468765d1871dd7de7e987c
coredumpctl: modernize table output

Let's use our table formatter for generating the coredump table. Bring
support up to our current standards, with a bit of color, JSON output
and so on.

Also adds supports for setting a max for the number of lines to
generate. (with the new -n switch)

The existing -1 switch now becomes a synonym for "-n 1 --reverse"

Fixes: #3271
src/coredump/coredumpctl.c