summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorIwan Timmer <irtimmer@gmail.com>2018-06-13 20:26:24 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit19d3fe825b2a94a4e88038a739af9425581952a3 (patch)
treeed1575943d7f5b6157373db59ae57d610175bf64 /shell-completion
parent9ddac0a4a280233f8b169ae64db0e2b6b6ecc40d (diff)
resolve: rename PrivateDNS to DNSOverTLS
PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/resolvectl12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell-completion/bash/resolvectl b/shell-completion/bash/resolvectl
index dcacb1269..97e83d2bd 100644
--- a/shell-completion/bash/resolvectl
+++ b/shell-completion/bash/resolvectl
@@ -48,14 +48,14 @@ _resolvectl() {
[LINK]='revert dns domain nta'
[RESOLVE]='llmnr mdns'
[DNSSEC]='dnssec'
- [PRIVATEDNS]='privatedns'
+ [DNSOVERTLS]='dnsovertls'
[STANDALONE]='statistics reset-statistics flush-caches reset-server-features'
)
local -A ARGS=(
[FAMILY]='tcp udp sctp'
[RESOLVE]='yes no resolve'
[DNSSEC]='yes no allow-downgrade'
- [PRIVATEDNS]='no opportunistic'
+ [DNSOVERTLS]='no opportunistic'
)
local interfaces=$( __get_interfaces )
@@ -111,7 +111,7 @@ _resolvectl() {
comps=""
fi
- elif __contains_word "$verb" ${VERBS[LINK]} ${VERBS[RESOLVE]} ${VERBS[DNSSEC]} ${VERBS[PRIVATEDNS]}; then
+ elif __contains_word "$verb" ${VERBS[LINK]} ${VERBS[RESOLVE]} ${VERBS[DNSSEC]} ${VERBS[DNSOVERTLS]}; then
for ((i++; i < COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" $interfaces &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
@@ -155,10 +155,10 @@ _resolvectl() {
comps=''
fi
- elif __contains_word "$verb" ${VERBS[PRIVATEDNS]}; then
+ elif __contains_word "$verb" ${VERBS[DNSOVERTLS]}; then
name=
for ((i++; i < COMP_CWORD; i++)); do
- if __contains_word "${COMP_WORDS[i]}" ${ARGS[PRIVATEDNS]} &&
+ if __contains_word "${COMP_WORDS[i]}" ${ARGS[DNSOVERTLS]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
name=${COMP_WORDS[i]}
break;
@@ -166,7 +166,7 @@ _resolvectl() {
done
if [[ -z $name ]]; then
- comps=${ARGS[PRIVATEDNS]}
+ comps=${ARGS[DNSOVERTLS]}
else
comps=''
fi