mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added modifyhd command
This commit is contained in:
1
README
1
README
@@ -28,6 +28,7 @@ Current version of script was written and tested against VBoxManage in version
|
||||
- import
|
||||
- list
|
||||
- metrics
|
||||
- modifyhd
|
||||
- natnetwork
|
||||
- registervm
|
||||
- setextradata
|
||||
|
||||
18
VBoxManage
18
VBoxManage
@@ -7,7 +7,6 @@
|
||||
#
|
||||
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
||||
#
|
||||
# [ ] modifyhd
|
||||
# [ ] modifyvm
|
||||
|
||||
_VBoxManage() {
|
||||
@@ -1177,6 +1176,23 @@ _VBoxManage() {
|
||||
|
||||
;;
|
||||
modifyhd)
|
||||
if [[ ${prev} == ${cmd} ]]; then
|
||||
_hdd_comp ${cur}
|
||||
else
|
||||
_find_item_name 2
|
||||
items=(--type --autoreset --property --compact --resize)
|
||||
_get_excluded_items "${items[@]}"
|
||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||
case "${prev}" in
|
||||
--type)
|
||||
COMPREPLY=( $(compgen -W "normal writethrough immutable
|
||||
shareable readonly multiattach" -- ${cur}) )
|
||||
;;
|
||||
--autoreset)
|
||||
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
modifyvm)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user