]>
Commit | Line | Data |
---|---|---|
76dceb10 SK |
1 | _uuidd_module() |
2 | { | |
3 | local cur prev OPTS | |
4 | COMPREPLY=() | |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
6 | prev="${COMP_WORDS[COMP_CWORD-1]}" | |
7 | case $prev in | |
8 | '-p'|'--pid'|'-s'|'--socket') | |
9 | compopt -o filenames | |
10 | COMPREPLY=( $(compgen -f -- $cur) ) | |
11 | return 0 | |
12 | ;; | |
13 | '-T'|'--timeout') | |
14 | compopt -o filenames | |
15 | COMPREPLY=( $(compgen -W "timeout" -- $cur) ) | |
16 | return 0 | |
17 | ;; | |
18 | '-n'|'--uuids') | |
19 | compopt -o filenames | |
20 | COMPREPLY=( $(compgen -W "number" -- $cur) ) | |
21 | return 0 | |
22 | ;; | |
d4f9b8d7 VS |
23 | '-h'|'--help'|'-V'|'--version') |
24 | return 0 | |
25 | ;; | |
76dceb10 SK |
26 | esac |
27 | case $cur in | |
28 | -*) | |
0d5b9b8a | 29 | OPTS="--pid --socket --timeout --kill --random --time --uuids --no-pid --no-fork --socket-activation --debug --quiet --version --help" |
76dceb10 SK |
30 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) |
31 | return 0 | |
32 | ;; | |
33 | esac | |
34 | return 0 | |
35 | } | |
36 | complete -F _uuidd_module uuidd |