tss2_gettpmblobs 803 B

1234567891011121314151617181920212223242526
  1. # bash completion for tss2_gettpmblobs -*- shell-script -*-
  2. _tss2_gettpmblobs()
  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. -!(-*)[p] | --path )
  11. return;;
  12. -!(-*)[url] | --tpm2bPublic | --tpm2bPrivate | --policy)
  13. _filedir
  14. if [ x"$cur" = x ]; then COMPREPLY+=( '-' ); fi
  15. return;;
  16. esac
  17. $split && return
  18. COMPREPLY=( $(compgen -W "-h --help -v --version --force -f --path= -p --tpm2bPublic= -u --tpm2bPrivate= -r --policy= -l" -- "$cur") )
  19. [[ $COMPREPLY == *= ]] && compopt -o nospace
  20. } &&
  21. complete -F _tss2_gettpmblobs tss2_gettpmblobs
  22. # ex: filetype=sh