]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: resolvectl: support 'log-level' command 16952/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Sep 2020 08:03:28 +0000 (17:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Sep 2020 08:03:28 +0000 (17:03 +0900)
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]} &&