]> git.ipfire.org Git - thirdparty/systemd.git/commit
json: add new output flag JSON_PRETTY_AUTO 14208/head
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Aug 2019 07:36:04 +0000 (09:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Dec 2019 08:47:00 +0000 (09:47 +0100)
commit2d8143048bc67470c76e8975cdecfb6b9823ecce
tree5d1ab77ab217f89b45bf9d6ad9344fe6f6a66b0b
parent19a209cc710a0368588d8541ed40ba8886599bd1
json: add new output flag JSON_PRETTY_AUTO

This takes inspiration from JSON_COLOR_AUTO: it will automatically map
to JSON_PRETTY if connected to a TTY and JSON_NEWLINE otherwise.
src/shared/json.c
src/shared/json.h