Debian Codegraph @

demos/print-editor/completion

raw
1 _gtk4_print_editor()
2 {
3 local cur prev opts
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 opts="--gapplication-service \
8 --help \
9 --help-all \
10 --help-gapplication \
11 --version"
12
13 if [[ ${cur} == -* ]] ; then
14 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
15 return 0
16 fi
17 }
18 complete -F _gtk4_print_editor gtk4-print-editor