Commit abe92ab5 authored by Jan Včelák's avatar Jan Včelák 🚀

keymgr: add 'zone key ds' into completion

parent 86e29feb
......@@ -156,7 +156,7 @@ _keymgr()
COMPREPLY=( $( compgen -W "$c" -- "$cur" ) )
fi
;;
show)
show|ds)
count=$((count + 1))
if [[ $count -ne $cword ]]; then
local c=$( keymgr zone key list "$sub3cmd" 2>/dev/null | cut -f 2 -d ' ' )
......@@ -168,7 +168,7 @@ _keymgr()
;;
*)
COMPREPLY=( $( compgen -W 'generate import
list set show' -- "$cur" ) )
list set show ds' -- "$cur" ) )
;;
esac
;;
......
......@@ -75,6 +75,7 @@ _regex_words zone-key-commands "zone key commands" \
'i*mport:import keys from file:$zone_key_import_cmds' \
'l*ist:list keys:$zones' \
'sh*ow:show a key:$zones' \
'd*s:show DS records for a key:$zones' \
'se*t:set attributes of a key:$zone_key_set_cmds'
zone_key_cmds=("$reply[@]")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment