]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm: automatically anable JSON-SEQ in case JSON is used for "udevadm info -a"
authorLennart Poettering <lennart@poettering.net>
Mon, 28 Oct 2024 12:26:01 +0000 (13:26 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Oct 2024 13:39:59 +0000 (22:39 +0900)
commitebc64de22f84f62dc48e5d16ec5d12ca82222b74
treecef0d33697eaa9f12d832a79dd9592056e19af62
parent7aea1c9e80f20a9bde573b88125a884b9a0ec79f
udevadm: automatically anable JSON-SEQ in case JSON is used for "udevadm info -a"

We are going to output a series of JSON objects, hence let's
automatically enable JSON-SEQ output mode, as we usually do.

"jq --seq" supports this natively, hence this should not really restrict
us.

Follow-up for: 67ea8a4c0edef33b1775536bc81d5de2c8ac4d88
man/udevadm.xml
src/udev/udevadm-info.c
test/units/TEST-17-UDEV.10.sh