Updated import command

This commit is contained in:
2023-03-13 17:10:43 +01:00
parent 12e85b78da
commit c212439a64

View File

@@ -1798,8 +1798,11 @@ _VBoxManage() {
;; ;;
import) import)
items=(--options --dry-run -n --vmname --cloud --cloudprofile items=(--basefolder --cloud --cloudbucket --cloudinstanceid
--cloudinstanceid --cloudbucket) --cloudprofile --controller --cpus --description --disk
--dry-run --eula --group --ignore --memory --options --ostype
--port --scsitype --settingsfile --unit --vmname --vsys)
if [[ "${prev}" == "import" ]]; then if [[ "${prev}" == "import" ]]; then
COMPREPLY=( $(compgen -o plusdirs -f -X '!@(*.ovf|*.ova)' \ COMPREPLY=( $(compgen -o plusdirs -f -X '!@(*.ovf|*.ova)' \
-- ${cur}) ) -- ${cur}) )
@@ -1809,10 +1812,20 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "keepallmacs keepnatmacs COMPREPLY=( $(compgen -W "keepallmacs keepnatmacs
importtovdi" -- ${cur}) ) importtovdi" -- ${cur}) )
;; ;;
--basefolder)
COMPREPLY=( $(compgen -o dirnames -- ${cur}) )
;;
--eula)=
COMPREPLY=( $(compgen -W "show accept" -- ${cur}) )
;;
--settingsfile)
COMPREPLY=( $(compgen -f -- ${cur}) )
;;
--scsitype)
COMPREPLY=( $(compgen -W "BusLogic LsiLogic" -- ${cur}) )
;;
esac esac
[[ " ${COMP_WORDS[@]} " != *" --dry-run"* &&
" ${COMP_WORDS[@]} " != *" -n"* ]] &&
items+=(-n --dry-run)
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
_get_excluded_items "${items[@]}" _get_excluded_items "${items[@]}"