aboutsummaryrefslogtreecommitdiff
path: root/office/multivalent-tool-pdf/multivalent-tool-pdf.bash_completion
blob: 3667134e1c9b53c5c11ef1296dd3efa8fcc15829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_multivalent-tool-pdf()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="Compress Convert Decrypt Diff Embed Encrypt Extract Impose Info Markup Merge Repair Split Stamp Uncompact Uncompress Undo Validate"

    if [[ $prev == "multivalent-tool-pdf" ]] ; then
        COMPREPLY=( $(compgen -W "$opts" -- $cur) )
        return 0
    else
        COMPREPLY=( $(compgen -f $cur) )
        return 0
    fi
}
complete -F _multivalent-tool-pdf multivalent-tool-pdf