]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/uuidgen
lsclocks: add support for RTC
[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 '-h'|'--help'|'-V'|'--version')
17 return 0
18 ;;
19 esac
20 case $cur in
21 -*)
22 OPTS="
23 --random
24 --time
25 --namespace
26 --name
27 --md5
28 --sha1
29 --hex
30 --help
31 --version
32 "
33 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
34 return 0
35 ;;
36 esac
37 return 0
38 }
39 complete -F _uuidgen_module uuidgen