]> git.ipfire.org Git - thirdparty/systemd.git/commit
format-table: add option to uppercase cells on display
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Dec 2018 20:36:26 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Dec 2018 21:42:38 +0000 (22:42 +0100)
commit359abf6dd05aa6bca3438e9c969ed904bd3d447d
treefd0d902050341e51e07cb78b34a3bc5839c98c4e
parentad9d139e023eb08144b79ba89914a91b8463b2ec
format-table: add option to uppercase cells on display

This adds a per-cell option for uppercasing displayed strings.
Implicitly turn this on for the header row. The fact that we format the
table header in uppercase is a formatting thing after all, hence should
be applied by the formatter, i.e. the table display code.

Moreover, this provides us with the benefit that we can more nicely
reuse the specified table headers as JSON field names, like we already
do: json field names are usually not uppercase.
src/shared/format-table.c
src/shared/format-table.h