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:
28
VBoxManage
28
VBoxManage
@@ -7,7 +7,6 @@
|
||||
#
|
||||
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
||||
#
|
||||
# [ ] export
|
||||
# [ ] extpack
|
||||
# [ ] getextradata
|
||||
# [ ] guestcontrol
|
||||
@@ -764,6 +763,33 @@ _VBoxManage() {
|
||||
_vms_state_comp ${cur}
|
||||
;;
|
||||
"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)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user