Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pdnsutil.bash_completion.d #14927

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions contrib/pdnsutil.bash_completion.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
# pdnsutil YOUNAMEIT <TAB> - completes to available zones, might be expensive with many (>10000) zones
#

have pdnsutil && {
which pdnsutil >/dev/null 2>&1

if [ "${?}" -eq 0 ]
then
_pdnsutil_helper_local_() {
local cur prev cmd

local _PDNSUTIL_ALL_CMDS="activate-tsig-key activate-zone-key add-record add-supermaster add-zone-key backend-cmd backend-lookup b2b-migrate bench-db change-slave-zone-master
check-zone check-all-zones clear-zone create-bind-db create-slave-zone create-zone deactivate-tsig-key deactivate-zone-key delete-rrset
delete-tsig-key delete-zone disable-dnssec edit-zone export-zone-dnskey export-zone-key generate-tsig-key generate-zone-key get-meta
hash-zone-record increase-serial import-tsig-key import-zone-key load-zone list-algorithms list-keys list-zone list-all-zones
list-tsig-keys rectify-zone rectify-all-zones remove-zone-key replace-rrset secure-all-zones secure-zone set-kind set-nsec3 set-presigned
set-publish-cdnskey set-publish-cds set-meta show-zone unset-nsec3 unset-presigned unset-publish-cdnskey unset-publish-cds test-schema
import-zone-key-pem export-zone-key-pem list-member-zones"
local _PDNSUTIL_ALL_CMDS="activate-tsig-key activate-zone-key add-record add-autoprimary remove-autoprimary list-autoprimaries add-zone-key backend-cmd b2b-migrate bench-db
check-zone check-all-zones clear-zone create-bind-db create-secondary-zone change-secondary-zone-primary create-zone deactivate-tsig-key
deactivate-zone-key delete-rrset delete-tsig-key delete-zone disable-dnssec edit-zone export-zone-dnskey export-zone-ds export-zone-key
export-zone-key-pem generate-tsig-key generate-zone-key get-meta hash-password hash-zone-record hsm hsm increase-serial import-tsig-key
import-zone-key import-zone-key-pem ipdecrypt ipencrypt load-zone list-algorithms list-keys list-zone list-all-zones list-member-zones
list-tsig-keys publish-zone-key rectify-zone rectify-all-zones remove-zone-key replace-rrset secure-all-zones secure-zone set-kind set-options-json
set-option set-catalog set-account set-nsec3 set-presigned set-publish-cdnskey set-publish-cds add-meta set-meta show-zone unpublish-zone-key
unset-nsec3 unset-presigned unset-publish-cdnskey unset-publish-cds test-schema raw-lua-from-content zonemd-verify-file lmdb-get-backend-version"
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
Expand All @@ -42,4 +45,4 @@ have pdnsutil && {
}

complete -o default -F _pdnsutil_helper_local_ pdnsutil
}
fi