Update createmedium command

This commit is contained in:
2023-03-19 16:40:01 +01:00
parent 25d7fb4048
commit 350e0aedaf

View File

@@ -1016,8 +1016,8 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
;; ;;
*) *)
[[ " ${COMP_WORDS[@]} " == *" --size "* || [[ " ${COMP_WORDS[*]} " == *" --size "* ||
" ${COMP_WORDS[@]} " == *" --sizebyte "* ]] && " ${COMP_WORDS[*]} " == *" --sizebyte "* ]] &&
items=(--filename --diffparent --format --variant) items=(--filename --diffparent --format --variant)
_get_excluded_items "${items[@]}" _get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
@@ -1031,12 +1031,12 @@ _VBoxManage() {
_hdd_comp _hdd_comp
;; ;;
--format) --format)
COMPREPLY=( $(compgen -W "VDI VMDK VHD" --\ COMPREPLY=( $(compgen -W "VDI VMDK VHD" \
${cur}) ) -- ${cur}) )
;; ;;
--variant) --variant)
COMPREPLY=( $(compgen -W "Standard Fixed Split2G COMPREPLY=( $(compgen -W "Standard Fixed Split2G
Stream ESX Formatted" -- ${cur}) ) Stream ESX Formatted RawDisk" -- ${cur}) )
;; ;;
esac esac
;; ;;