]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostnamectl: add -j switch for quick json output 31019/head
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 14:49:33 +0000 (15:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2024 13:39:22 +0000 (14:39 +0100)
commit2bf618331d16f1a148aff7d97e850eaf06ae92c2
tree96b3eb56a88eb9c090b5eb64c2a95dd58269301d
parentdb21c2ec70af9aebe6a9a300b26650688f6378f4
hostnamectl: add -j switch for quick json output

We already support -j as shortcut for JSON mode in various tools. Let's
add one more. We probably should add this systematically (at least where
it doesn't conflict with an existing -j switch with other purpose). But
I am too lazy to add that now.
man/hostnamectl.xml
shell-completion/bash/hostnamectl
src/hostname/hostnamectl.c