tss2_getrandom 734 B

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