Add usbdevsource subcommand completion
This commit is contained in:
parent
bf30efa147
commit
2e02fa2bc4
|
@ -321,7 +321,7 @@ _vboxmanage() {
|
|||
# TODO
|
||||
;;
|
||||
(usbdevsource)
|
||||
# TODO
|
||||
_vboxmanage_usbdevsource && ret=0
|
||||
;;
|
||||
(extpack)
|
||||
_vboxmanage_expack && ret=0
|
||||
|
@ -966,6 +966,32 @@ _vboxmanage_guestproperty() {
|
|||
return $ret
|
||||
}
|
||||
|
||||
(( $+functions[_vboxmanage_usbdevsource] )) ||
|
||||
_vboxmanage_usbdevsource() {
|
||||
local ret=1
|
||||
|
||||
_arguments -C \
|
||||
'1: :(add remove)' \
|
||||
'*:: :->arg' \
|
||||
&& ret=0
|
||||
|
||||
case $state in
|
||||
(arg)
|
||||
case $words[1] in
|
||||
(add)
|
||||
_arguments \
|
||||
'--address=[Specifies the address of the USB backend]:address' \
|
||||
'--backend=[Specifies the USB proxy service backend to use]:backend' \
|
||||
'*: :_files' \
|
||||
&& ret=0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
||||
(( $+functions[_vboxmanage_expack] )) ||
|
||||
_vboxmanage_expack() {
|
||||
local ret=1
|
||||
|
|
Loading…
Reference in New Issue