]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/uuidgen
Merge branch 'lsfs--sockdiag-RW' of https://github.com/masatake/util-linux
[thirdparty/util-linux.git] / bash-completion / uuidgen
CommitLineData
76dceb10
SK
1_uuidgen_module()
2{
d4f9b8d7 3 local cur prev OPTS
76dceb10
SK
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
d4f9b8d7
VS
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
37a6cc7a
SK
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 ;;
06d3a851
KZ
16 '-C'|'--count')
17 COMPREPLY=( $(compgen -W "number" -- $cur) )
18 return 0
19 ;;
d4f9b8d7
VS
20 '-h'|'--help'|'-V'|'--version')
21 return 0
22 ;;
23 esac
76dceb10
SK
24 case $cur in
25 -*)
37a6cc7a
SK
26 OPTS="
27 --random
28 --time
29 --namespace
30 --name
31 --md5
06d3a851 32 --count
37a6cc7a
SK
33 --sha1
34 --hex
35 --help
36 --version
37 "
76dceb10
SK
38 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
39 return 0
40 ;;
41 esac
42 return 0
43}
44complete -F _uuidgen_module uuidgen