mount-tool: add support for a --json= output mode

Let's add a JSON output mode, like we have it for so many of our tools.
This commit is contained in:
Lennart Poettering
2024-07-10 09:35:31 +02:00
parent 070a43ced4
commit 66f4f49c8f
3 changed files with 14 additions and 8 deletions
+1
View File
@@ -23,6 +23,7 @@ systemd-mount --list --full
systemd-mount --list --no-legend
systemd-mount --list --no-pager
systemd-mount --list --quiet
systemd-mount --list --json=pretty
# tmpfs
mkdir -p "$WORK_DIR/mnt/foo/bar"