Update storagectl command

This commit is contained in:
2023-03-19 16:34:40 +01:00
parent 52aa7111fa
commit 0077621f1b

View File

@@ -2782,8 +2782,8 @@ _VBoxManage() {
;; ;;
storagectl) storagectl)
local items=(--name --add --controller --portcount --hostiocache local items=( --add --bootable --controller --hostiocache --name
--bootable --rename --remove) --portcount --remove --rename )
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
_vms_comp vms _vms_comp vms
else else
@@ -2791,12 +2791,13 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
case "${prev}" in case "${prev}" in
--add) --add)
COMPREPLY=( $(compgen -W "ide sata scsi floppy COMPREPLY=( $(compgen -W "floppy ide pcie sas sata scsi
sas usb pcie" -- ${cur}) ) usb" -- ${cur}) )
;; ;;
--controller) --controller)
COMPREPLY=( $(compgen -W "LSILogic LSILogicSAS BusLogic COMPREPLY=( $(compgen -W "BusLogic I82078 ICH6 IntelAhci
IntelAHCI PIIX3 PIIX4 ICH6 I82078 USB NVMe" -- ${cur}) ) LSILogic LSILogicSAS NVMe PIIX3 PIIX4 USB VirtIO" \
-- ${cur}) )
;; ;;
--bootable|--hostiocache) --bootable|--hostiocache)
COMPREPLY=( $(compgen -W "on off" -- ${cur}) ) COMPREPLY=( $(compgen -W "on off" -- ${cur}) )