Debian Codegraph @

bash-completion/dmesg

raw
1
2 _dmesg_module()
3 {
4 local cur prev OPTS
5 COMPREPLY=()
6 cur="${COMP_WORDS[COMP_CWORD]}"
7 prev="${COMP_WORDS[COMP_CWORD-1]}"
8 case $prev in
9 '-F'|'--file'|'-K'|'--kmsg-file')
10 local IFS=$'\n'
11 compopt -o filenames
12 COMPREPLY=( $(compgen -f -- $cur) )
13 return 0
14 ;;
15 '-f'|'--facility')
16 COMPREPLY=( $(compgen -W "kern user mail daemon auth syslog lpr news" -- $cur) )
17 return 0
18 ;;
19 '-l'|'--level'|'-n'|'--console-level')
20 COMPREPLY=( $(compgen -W "emerg alert crit err warn notice info debug" -- $cur) )
21 return 0
22 ;;
23 '--time-format')
24 COMPREPLY=( $(compgen -W "delta reltime ctime notime iso" -- $cur) )
25 return 0
26 ;;
27 '-h'|'--help'|'-V'|'--version')
28 return 0
29 ;;
30 esac
31 OPTS="--buffer-size
32 --clear
33 --color
34 --console-level
35 --console-off
36 --console-on
37 --ctime
38 --decode
39 --facility
40 --file
41 --follow
42 --follow-new
43 --force-prefix
44 --help
45 --human
46 --json
47 --kernel
48 --kmsg-file
49 --level
50 --noescape
51 --nopager
52 --notime
53 --raw
54 --read-clear
55 --reltime
56 --show-delta
57 --since
58 --syslog
59 --time-format
60 --until
61 --userspace
62 --version"
63 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
64 return 0
65 }
66 complete -F _dmesg_module dmesg