mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Update storageattach command
This commit is contained in:
24
VBoxManage
24
VBoxManage
@@ -2740,17 +2740,21 @@ _VBoxManage() {
|
|||||||
_vms_comp vms
|
_vms_comp vms
|
||||||
else
|
else
|
||||||
_find_item_name 2
|
_find_item_name 2
|
||||||
local items=(--storagectl --port --device --type --medium --mtype
|
local items=( --bandwidthgroup --comment --device --discard
|
||||||
--comment --setuuid --setparentuuid --passthrough --tempeject
|
--encodedlun --forceunmount --hotpluggable --initiator --intnet
|
||||||
--nonrotational --discard --hotpluggable --bandwidthgroup
|
--lun --medium --mtype --nonrotational --passthrough --password
|
||||||
--forceunmount --server --target --tport --lun --encodedlun
|
--passwordfile --port --server --setparentuuid --setuuid
|
||||||
--username --password --initiator --intnet --passwordfile)
|
--storagectl --target --tempeject --tport --type --username )
|
||||||
_get_excluded_items "${items[@]}"
|
_get_excluded_items "${items[@]}"
|
||||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
--type)
|
--bandwidthgroup)
|
||||||
COMPREPLY=( $(compgen -W "dvddrive hdd fdd" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "none" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
--discard|--hotpluggable|--nonrotational|--passthrough|\
|
||||||
|
--tempeject)
|
||||||
|
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
--medium)
|
--medium)
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
@@ -2767,12 +2771,12 @@ _VBoxManage() {
|
|||||||
COMPREPLY=( $(compgen -W "normal writethrough immutable
|
COMPREPLY=( $(compgen -W "normal writethrough immutable
|
||||||
shareable readonly multiattach" -- ${cur}) )
|
shareable readonly multiattach" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
--passthrough|--tempeject|--nonrotational|--discard)
|
|
||||||
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
|
|
||||||
;;
|
|
||||||
--passwordfile)
|
--passwordfile)
|
||||||
COMPREPLY=( $(compgen -f -- ${cur}) )
|
COMPREPLY=( $(compgen -f -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
--type)
|
||||||
|
COMPREPLY=( $(compgen -W "dvddrive hdd fdd" -- ${cur}) )
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user