]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/uuidgen
tests: (lsfd) fix typoes in an error name
[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 --hex
35 --help
36 --version
37 "
38 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
39 return 0
40 ;;
41 esac
42 return 0
43 }
44 complete -F _uuidgen_module uuidgen