multivalent-tool-pdf.bash_completion 537 B

123456789101112131415161718
  1. _multivalent-tool-pdf()
  2. {
  3. local cur prev opts
  4. COMPREPLY=()
  5. cur="${COMP_WORDS[COMP_CWORD]}"
  6. prev="${COMP_WORDS[COMP_CWORD-1]}"
  7. opts="Compress Convert Decrypt Diff Embed Encrypt Extract Impose Info Markup Merge Repair Split Stamp Uncompact Uncompress Undo Validate"
  8. if [[ $prev == "multivalent-tool-pdf" ]] ; then
  9. COMPREPLY=( $(compgen -W "$opts" -- $cur) )
  10. return 0
  11. else
  12. COMPREPLY=( $(compgen -f $cur) )
  13. return 0
  14. fi
  15. }
  16. complete -F _multivalent-tool-pdf multivalent-tool-pdf