journalctl: implement --list-namespaces

Apart from being useful on its own, this will be used in the following
commit for shell completions.
This commit is contained in:
Frantisek Sumsal
2024-01-05 19:21:51 +01:00
parent 35a7dd4834
commit 68f66a1713
4 changed files with 80 additions and 1 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ _journalctl() {
--version --list-catalog --update-catalog --list-boots
--show-cursor --dmesg -k --pager-end -e -r --reverse
--utc -x --catalog --no-full --force --dump-catalog
--flush --rotate --sync --no-hostname -N --fields'
--flush --rotate --sync --no-hostname -N --fields
--list-namespaces'
[ARG]='-b --boot -D --directory --file -F --field -t --identifier
-T --exclude-identifier --facility -M --machine -o --output
-u --unit --user-unit -p --priority --root --case-sensitive'