]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/bash/resolvectl
bash-completion: resolvectl: support 'log-level' command
[thirdparty/systemd.git] / shell-completion / bash / resolvectl
index d4ac339038126371fc8cbc30478b1b555361fdab..54b241ce90e5f6a7ea66686ca96c089ed5f1390a 100644 (file)
@@ -48,6 +48,7 @@ _resolvectl() {
         [DNSSEC]='dnssec'
         [DNSOVERTLS]='dnsovertls'
         [STANDALONE]='statistics reset-statistics flush-caches reset-server-features'
+        [LOG_LEVEL]='log-level'
     )
     local -A ARGS=(
         [FAMILY]='tcp udp sctp'
@@ -95,6 +96,9 @@ _resolvectl() {
     elif __contains_word "$verb" ${VERBS[STATUS]}; then
         comps="$interfaces"
 
+    elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then
+        comps='debug info notice warning err crit alert emerg'
+
     elif __contains_word "$verb" ${VERBS[FAMILY]}; then
         for ((i++; i < COMP_CWORD; i++)); do
             if __contains_word "${COMP_WORDS[i]}" ${ARGS[FAMILY]} &&