2 # shfmt --language-dialect bash --indent 4 --func-next-line
12 ['forward-compatible']=''
15 ['reset-notification']=''
21 _get_comp_words_by_ref cur prev
25 COMPREPLY=($(compgen -W 'android cgl gbm glx surfaceless_egl sl wayland wgl x11_egl' -- "$cur"))
29 COMPREPLY=($(compgen -W 'gl gles1 gles2 gles3' -- "$cur"))
33 local versions=(1.{0..5} 2.{0..1} 3.{0..3} 4.{0..6})
34 COMPREPLY=($(compgen -W "${versions[*]}" -- "$cur"))
38 COMPREPLY=($(compgen -W 'core compat none' -- "$cur"))
42 COMPREPLY=($(compgen -W 'original json' -- "$cur"))
47 if [[ $cur == --* ]]; then
48 COMPREPLY=($(compgen -P '--' -W "${!opts[*]}" -- "${cur:2}"))
49 elif [[ $cur == -* && ${#cur} -gt 1 ]]; then
50 COMPREPLY=($(compgen -P '-' -W "${opts[*]}" -- "${cur:1}"))
52 COMPREPLY=($(compgen -P '-' -W "${opts[*]}" -- "${cur:1}")
53 $(compgen -P '--' -W "${!opts[*]}" -- "${cur:2}"))
56 complete -F _wflinfo wflinfo