From 52aa7111fa397eee8dcba859aa3a5784d9f704ad Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Sun, 19 Mar 2023 16:27:42 +0100 Subject: [PATCH] Update storageattach command --- VBoxManage | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/VBoxManage b/VBoxManage index 33f2703..7927d78 100644 --- a/VBoxManage +++ b/VBoxManage @@ -2740,17 +2740,21 @@ _VBoxManage() { _vms_comp vms else _find_item_name 2 - local items=(--storagectl --port --device --type --medium --mtype - --comment --setuuid --setparentuuid --passthrough --tempeject - --nonrotational --discard --hotpluggable --bandwidthgroup - --forceunmount --server --target --tport --lun --encodedlun - --username --password --initiator --intnet --passwordfile) + local items=( --bandwidthgroup --comment --device --discard + --encodedlun --forceunmount --hotpluggable --initiator --intnet + --lun --medium --mtype --nonrotational --passthrough --password + --passwordfile --port --server --setparentuuid --setuuid + --storagectl --target --tempeject --tport --type --username ) _get_excluded_items "${items[@]}" COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) case "${prev}" in - --type) - COMPREPLY=( $(compgen -W "dvddrive hdd fdd" -- ${cur}) ) + --bandwidthgroup) + COMPREPLY=( $(compgen -W "none" -- ${cur}) ) + ;; + --discard|--hotpluggable|--nonrotational|--passthrough|\ + --tempeject) + COMPREPLY=( $(compgen -W "on off" -- ${cur}) ) ;; --medium) COMPREPLY=() @@ -2767,12 +2771,12 @@ _VBoxManage() { COMPREPLY=( $(compgen -W "normal writethrough immutable shareable readonly multiattach" -- ${cur}) ) ;; - --passthrough|--tempeject|--nonrotational|--discard) - COMPREPLY=( $(compgen -W "on off" -- ${cur}) ) - ;; --passwordfile) COMPREPLY=( $(compgen -f -- ${cur}) ) ;; + --type) + COMPREPLY=( $(compgen -W "dvddrive hdd fdd" -- ${cur}) ) + ;; esac fi ;;