mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Updated export command
This commit is contained in:
23
VBoxManage
23
VBoxManage
@@ -1332,7 +1332,8 @@ _VBoxManage() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"export")
|
"export")
|
||||||
items=( --manifest --options --vsys --cloud --cloudinitscriptpath )
|
items=( --manifest --options --vsys --cloud --cloudinitscriptpath
|
||||||
|
--output)
|
||||||
if [[ ${prev} == ${cmd} ]]; then
|
if [[ ${prev} == ${cmd} ]]; then
|
||||||
_vms_comp vms
|
_vms_comp vms
|
||||||
elif [[ ${prev} == "--eulafile" ]]; then
|
elif [[ ${prev} == "--eulafile" ]]; then
|
||||||
@@ -1342,19 +1343,16 @@ _VBoxManage() {
|
|||||||
${prev} == "--cloudpublicip" ]]; then
|
${prev} == "--cloudpublicip" ]]; then
|
||||||
COMPREPLY=( $(compgen -W "true false" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "true false" -- ${cur}) )
|
||||||
else
|
else
|
||||||
[[ " ${COMP_WORDS[@]} " != *" -o "* &&
|
[[ " ${COMP_WORDS[*]} " != *" --legacy09 "* &&
|
||||||
" ${COMP_WORDS[@]} " != *" --output "* ]] &&
|
" ${COMP_WORDS[*]} " != *" --ovf09 "* &&
|
||||||
items+=(-o --output)
|
" ${COMP_WORDS[*]} " != *" --ovf10 "* &&
|
||||||
[[ " ${COMP_WORDS[@]} " != *" --legacy09 "* &&
|
" ${COMP_WORDS[*]} " != *" --ovf20 "* &&
|
||||||
" ${COMP_WORDS[@]} " != *" --ovf09 "* &&
|
" ${COMP_WORDS[*]} " != *" --opc10 "* ]] &&
|
||||||
" ${COMP_WORDS[@]} " != *" --ovf10 "* &&
|
|
||||||
" ${COMP_WORDS[@]} " != *" --ovf20 "* &&
|
|
||||||
" ${COMP_WORDS[@]} " != *" --opc20 "* ]] &&
|
|
||||||
items+=(--legacy09 --ovf09 --ovf10 --ovf20 --opc10)
|
items+=(--legacy09 --ovf09 --ovf10 --ovf20 --opc10)
|
||||||
[[ " ${COMP_WORDS[@]} " == *" --vsys "* ]] &&
|
[[ " ${COMP_WORDS[*]} " == *" --vsys "* ]] &&
|
||||||
items+=(--product --producturl --vendor --vendorurl
|
items+=(--product --producturl --vendor --vendorurl
|
||||||
--version --description --eula --eulafile --vmname)
|
--version --description --eula --eulafile --vmname)
|
||||||
[[ " ${COMP_WORDS[@]} " == *" --cloud"* ]] &&
|
[[ " ${COMP_WORDS[*]} " == *" --cloud"* ]] &&
|
||||||
items+=(--vmname --cloudprofile --cloudshape --clouddomain
|
items+=(--vmname --cloudprofile --cloudshape --clouddomain
|
||||||
--clouddisksize --cloudbucket --cloudocivcn --cloudocisubnet
|
--clouddisksize --cloudbucket --cloudocivcn --cloudocisubnet
|
||||||
--cloudkeepobject --cloudlaunchinstance --cloudpublicip
|
--cloudkeepobject --cloudlaunchinstance --cloudpublicip
|
||||||
@@ -1371,6 +1369,9 @@ _VBoxManage() {
|
|||||||
COMPREPLY=( $(compgen -W "EMULATED PARAVIRTUALIZED" \
|
COMPREPLY=( $(compgen -W "EMULATED PARAVIRTUALIZED" \
|
||||||
-- ${cur}) )
|
-- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
--cloudkeepobject|--cloudlaunchinstance|--cloudpublicip)
|
||||||
|
COMPREPLY=( $(compgen -W "true false" -- ${cur}) )
|
||||||
|
|
||||||
esac
|
esac
|
||||||
[[ ${#COMPREPLY[@]} -eq 0 ]] && \
|
[[ ${#COMPREPLY[@]} -eq 0 ]] && \
|
||||||
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
|
||||||
|
|||||||
Reference in New Issue
Block a user