tss2_createkey 665 B

1234567891011121314151617181920212223
  1. # bash completion for tss2_createkey -*- shell-script -*-
  2. _tss2_createkey()
  3. {
  4. local cur prev words cword split
  5. _init_completion -s || return
  6. case $prev in
  7. -!(-*)h | --help)
  8. COMPREPLY=( $(compgen -W "man no-man" -- "$cur") )
  9. return;;
  10. -!(-*)[ptPa] | --path | --type | --policyPath | --authValue)
  11. return;;
  12. esac
  13. $split && return
  14. COMPREPLY=( $(compgen -W "-h --help -v --version -p --path= -t --type=
  15. -P --policyPath= -a --authValue=" -- "$cur") )
  16. [[ $COMPREPLY == *= ]] && compopt -o nospace
  17. } &&
  18. complete -F _tss2_createkey tss2_createkey
  19. # ex: filetype=sh