Browse Source

bash-completion: resolvectl: support 'log-level' command

(cherry picked from commit 3605aae16170c8f86bc080b5810233c8e0fe3307)
suites/experimental
Yu Watanabe 1 year ago
committed by Sven Eden
parent
commit
2f27a56701
  1. 4
      shell-completion/bash/resolvectl

4
shell-completion/bash/resolvectl

@ -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]} &&

Loading…
Cancel
Save