shell-completion: provide completion for journalctl --namespace=
Resolves: #30381
This commit is contained in:
@@ -49,7 +49,8 @@ _journalctl() {
|
||||
--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'
|
||||
-u --unit --user-unit -p --priority --root --case-sensitive
|
||||
--namespace'
|
||||
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
|
||||
--after-cursor --cursor-file --verify-key -g --grep
|
||||
--vacuum-size --vacuum-time --vacuum-files --output-fields'
|
||||
@@ -114,6 +115,9 @@ _journalctl() {
|
||||
--case-sensitive)
|
||||
comps='yes no'
|
||||
;;
|
||||
--namespace)
|
||||
comps=$(journalctl --list-namespaces --output=cat 2>/dev/null)
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user