tss2_getplatformcertificates 728 B

123456789101112131415161718192021222324
  1. # bash completion for tss2_getplatformcertificates -*- shell-script -*-
  2. _tss2_getplatformcertificates()
  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. -!(-*)o | --certificates)
  11. _filedir
  12. if [ x"$cur" = x ]; then COMPREPLY+=( '-' ); fi
  13. return;;
  14. esac
  15. $split && return
  16. COMPREPLY=( $(compgen -W "-h --help -v --version --force -f --certificates= -o" -- "$cur") )
  17. [[ $COMPREPLY == *= ]] && compopt -o nospace
  18. } &&
  19. complete -F _tss2_getplatformcertificates tss2_getplatformcertificates
  20. # ex: filetype=sh