Updated createvm command.

This commit is contained in:
2023-03-12 18:53:20 +01:00
parent aa31561a45
commit d505a106fa

View File

@@ -1015,8 +1015,8 @@ _VBoxManage() {
;; ;;
createvm) createvm)
items=(--name --groups --ostype --register --basefolder --uuid items=( --basefolder --ciphercipher --default --group --name --ostype
--default) --password-idpassword-id --passwordfile --register --uuid )
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
else else
@@ -1024,7 +1024,7 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
case "${prev}" in case "${prev}" in
--groups) --group)
COMPREPLY=() COMPREPLY=()
_group_comp _group_comp
;; ;;
@@ -1035,9 +1035,8 @@ _VBoxManage() {
--basefolder) --basefolder)
COMPREPLY=( $(compgen -o dirnames -- ${cur}) ) COMPREPLY=( $(compgen -o dirnames -- ${cur}) )
;; ;;
--variant) --passwordfile)
COMPREPLY=( $(compgen -W "Standard Fixed Split2G Stream COMPREPLY=( $(compgen -f -- ${cur}) )
ESX" -- ${cur}) )
;; ;;
esac esac
fi fi