tss2_getappdata 728 B

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