]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: support JSON output for "show-environment"
authorJoris Hartog <jorishartog@hotmail.com>
Wed, 1 Dec 2021 14:06:29 +0000 (15:06 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Dec 2021 10:40:52 +0000 (11:40 +0100)
commit5ef599b324efbcb7af317c102b59c662df068500
treea36a278f17a7dde77f542fbeb7e2178aaa509786
parentdfaf3ec1bf4288b2d0109be990bc61a7ec56bd89
systemctl: support JSON output for "show-environment"

This commit adds a function which converts a bus message containing the
environment variables to a JSON object and uses this function to support
JSON formatted output for the "systemctl show-environment" command.

Fixes #21348
src/systemctl/systemctl-set-environment.c
test/units/testsuite-26.sh