Skip to content
Newer
Older
100644 17 lines (14 sloc) 401 Bytes
b1b8286 CA-46110 Tab completion on xe-switch-network-backend
Harrie Pieters authored
1 #xe-switch-network-backend tab completion
2
3 _xe-switch-network-backend()
4 {
5 local cur prev opts
6 COMPREPLY=()
7 cur="${COMP_WORDS[COMP_CWORD]}"
8 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 opts="bridge openvswitch"
10
11 if [[ ${cur} == * ]] ; then
12 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
13 return 0
14 fi
15 }
16 complete -F _xe-switch-network-backend xe-switch-network-backend
Something went wrong with that request. Please try again.