Debian Codegraph @

bash-completion/getino

raw
1 _getino_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 '-p'|'--print-pid')
9 return 0
10 ;;
11 '-h'|'--help'|'-V'|'--version')
12 return 0
13 ;;
14 esac
15 case $cur in
16 -*)
17 OPTS='
18 --print-pid
19 --pidfs
20 --cgroupns
21 --ipcns
22 --netns
23 --mntns
24 --pidns
25 --timens
26 --userns
27 --utsns
28 --help
29 --version'
30 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
31 return 0
32 ;;
33 *)
34 _pids
35 return 0
36 ;;
37 esac
38 return 0
39 }
40 complete -F _getino_module getino