]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/uuidgen
Wall: Fix terminal flag usage
[thirdparty/util-linux.git] / bash-completion / uuidgen
1 _uuidgen_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 '-n'|'--namespace')
9 COMPREPLY=( $(compgen -W "@dns @url @oid @x500 @x.500" -- "$cur") )
10 return 0
11 ;;
12 '-N'|'--name')
13 COMPREPLY=( $(compgen -W "name" -- "$cur") )
14 return 0
15 ;;
16 '-C'|'--count')
17 COMPREPLY=( $(compgen -W "number" -- $cur) )
18 return 0
19 ;;
20 '-h'|'--help'|'-V'|'--version')
21 return 0
22 ;;
23 esac
24 case $cur in
25 -*)
26 OPTS="
27 --random
28 --time
29 --namespace
30 --name
31 --md5
32 --count
33 --sha1
34 --time-v6
35 --time-v7
36 --hex
37 --help
38 --version
39 "
40 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
41 return 0
42 ;;
43 esac
44 return 0
45 }
46 complete -F _uuidgen_module uuidgen