]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/uuidd
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / uuidd
CommitLineData
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')
ce3e6b15 9 local IFS=$'\n'
76dceb10
SK
10 compopt -o filenames
11 COMPREPLY=( $(compgen -f -- $cur) )
12 return 0
13 ;;
14 '-T'|'--timeout')
ce3e6b15 15 local IFS=$'\n'
76dceb10
SK
16 compopt -o filenames
17 COMPREPLY=( $(compgen -W "timeout" -- $cur) )
18 return 0
19 ;;
20 '-n'|'--uuids')
ce3e6b15 21 local IFS=$'\n'
76dceb10
SK
22 compopt -o filenames
23 COMPREPLY=( $(compgen -W "number" -- $cur) )
24 return 0
25 ;;
d4f9b8d7
VS
26 '-h'|'--help'|'-V'|'--version')
27 return 0
28 ;;
76dceb10
SK
29 esac
30 case $cur in
31 -*)
0d5b9b8a 32 OPTS="--pid --socket --timeout --kill --random --time --uuids --no-pid --no-fork --socket-activation --debug --quiet --version --help"
76dceb10
SK
33 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
34 return 0
35 ;;
36 esac
37 return 0
38}
39complete -F _uuidd_module uuidd