Debian Codegraph @

bash-completion/scriptlive

raw
1 _scriptlive_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 '-c'|'--command')
9 compopt -o bashdefault
10 COMPREPLY=( $(compgen -c -- $cur) )
11 return 0
12 ;;
13 '-d'|'--divisor'|'-m'|'--maxdelay')
14 COMPREPLY=( $(compgen -W "digit" -- $cur) )
15 return 0
16 ;;
17 '-E'|'--echo')
18 COMPREPLY=( $(compgen -W "auto always never" -- $cur) )
19 return 0
20 ;;
21 '-h'|'--help'|'-V'|'--version')
22 return 0
23 ;;
24 esac
25 case $cur in
26 -*)
27 OPTS="
28 --echo
29 --timing
30 --log-in
31 --log-io
32 --log-timing
33 --command
34 --divisor
35 --maxdelay
36 --version
37 --help"
38 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
39 return 0
40 ;;
41 esac
42 local IFS=$'\n'
43 compopt -o filenames
44 COMPREPLY=( $(compgen -f -- $cur) )
45 return 0
46 }
47 complete -F _scriptlive_module scriptlive