components/zsh/Completion/Unix/Type/_zfs_keysource_props
branchs11-update
changeset 3021 b9308977c65b
parent 3020 a14aae53a1c7
child 3023 90190872ae3e
equal deleted inserted replaced
3020:a14aae53a1c7 3021:b9308977c65b
     1 #autoload
       
     2 
       
     3 local -a suf
       
     4 local expl
       
     5 
       
     6 compset -S ",*" || suf=(-S ,)
       
     7 if compset -P 1 "*,"; then
       
     8 	_alternative "zfs-keylocator-prompt:\"prompt\" locator:(prompt)" \
       
     9 		"zfs-keylocator-file:file locator:_path_files" \
       
    10 		"zfs-keylocator-pkcs11:PKCS#11 locator: " \
       
    11 		"zfs-keylocator-https:HTTPS URL locator: "
       
    12 else
       
    13 	_description format expl "keysource format"
       
    14 	compadd $suf -q "$expl[@]" "$@" raw hex passphrase
       
    15 fi