mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added export command
This commit is contained in:
1
README
1
README
@@ -19,6 +19,7 @@ Current version of script was written and tested against VBoxManage in version
|
|||||||
- debugvm
|
- debugvm
|
||||||
- dhcpserver
|
- dhcpserver
|
||||||
- discardstate
|
- discardstate
|
||||||
|
- export
|
||||||
- list
|
- list
|
||||||
- showhdinfo
|
- showhdinfo
|
||||||
- showvminfo
|
- showvminfo
|
||||||
|
|||||||
28
VBoxManage
28
VBoxManage
@@ -7,7 +7,6 @@
|
|||||||
#
|
#
|
||||||
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
||||||
#
|
#
|
||||||
# [ ] export
|
|
||||||
# [ ] extpack
|
# [ ] extpack
|
||||||
# [ ] getextradata
|
# [ ] getextradata
|
||||||
# [ ] guestcontrol
|
# [ ] guestcontrol
|
||||||
@@ -764,6 +763,33 @@ _VBoxManage() {
|
|||||||
_vms_state_comp ${cur}
|
_vms_state_comp ${cur}
|
||||||
;;
|
;;
|
||||||
"export")
|
"export")
|
||||||
|
items=( --manifest --iso --options --vsys)
|
||||||
|
if [[ ${prev} == ${cmd} ]]; then
|
||||||
|
_vms_comp vms ${cur}
|
||||||
|
else
|
||||||
|
[[ " ${COMP_WORDS[@]} " != *" -o "* &&
|
||||||
|
" ${COMP_WORDS[@]} " != *" --output "* ]] &&
|
||||||
|
items+=(-o --output)
|
||||||
|
[[ " ${COMP_WORDS[@]} " != *" --legacy09 "* &&
|
||||||
|
" ${COMP_WORDS[@]} " != *" --ovf09 "* &&
|
||||||
|
" ${COMP_WORDS[@]} " != *" --ovf10 "* &&
|
||||||
|
" ${COMP_WORDS[@]} " != *" --ovf20 "* ]] &&
|
||||||
|
items+=(--legacy09 --ovf09 --ovf10 --ovf20)
|
||||||
|
[[ " ${COMP_WORDS[@]} " == *" --vsys "* ]] &&
|
||||||
|
items+=(--product --producturl --vendor --vendorurl
|
||||||
|
--version --description --eula --eulafile)
|
||||||
|
_get_excluded_items "${items[@]}"
|
||||||
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
|
||||||
|
case "${prev}" in
|
||||||
|
--options)
|
||||||
|
COMPREPLY=( $(compgen -W "manifest iso nomacs
|
||||||
|
nomacsbutnat" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
[[ ${#COMPREPLY[@]} -eq 0 ]] && \
|
||||||
|
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
extpack)
|
extpack)
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user