]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: add --value option
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 2 Aug 2015 18:22:10 +0000 (14:22 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Apr 2016 02:41:49 +0000 (22:41 -0400)
commit4f9a91055ce83be9b6a81bdeab6d360f13ff897a
tree7a2e7ea073c8fe24d41c121b977aa16fa70cef96
parent897d2029235b39c06d41ea9fbb1036ccdba0e811
systemctl: add --value option

With this option, systemctl will only print the rhs in show:
$ systemctl show -p Wants,After systemd-journald --value
systemd-journald.socket ...
systemd-journald-dev-log.socket ...

This is useful in scripts, because the need to call awk or similar
is removed.
man/systemctl.xml
src/login/loginctl.c
src/shared/bus-util.c
src/shared/bus-util.h
src/systemctl/systemctl.c