mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 19:40:17 +01:00
Added extpack command
This commit is contained in:
1
README
1
README
@@ -20,6 +20,7 @@ Current version of script was written and tested against VBoxManage in version
|
|||||||
- dhcpserver
|
- dhcpserver
|
||||||
- discardstate
|
- discardstate
|
||||||
- export
|
- export
|
||||||
|
- extpack
|
||||||
- list
|
- list
|
||||||
- showhdinfo
|
- showhdinfo
|
||||||
- showvminfo
|
- showvminfo
|
||||||
|
|||||||
24
VBoxManage
24
VBoxManage
@@ -7,7 +7,6 @@
|
|||||||
#
|
#
|
||||||
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
||||||
#
|
#
|
||||||
# [ ] extpack
|
|
||||||
# [ ] getextradata
|
# [ ] getextradata
|
||||||
# [ ] guestcontrol
|
# [ ] guestcontrol
|
||||||
# [ ] guestproperty
|
# [ ] guestproperty
|
||||||
@@ -792,6 +791,29 @@ _VBoxManage() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
extpack)
|
extpack)
|
||||||
|
items=(install uninstall cleanup)
|
||||||
|
subcommand=${COMP_WORDS[2]}
|
||||||
|
if [[ " ${items[@]} " == *" $subcommand "* ]]; then
|
||||||
|
case "${subcommand}" in
|
||||||
|
install)
|
||||||
|
_get_excluded_items "--replace"
|
||||||
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
uninstall)
|
||||||
|
_get_excluded_items "--force"
|
||||||
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
cleanup)
|
||||||
|
COMPREPLY=()
|
||||||
|
;;
|
||||||
|
--replace)
|
||||||
|
COMPREPLY=()
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
[[ ${#COMPREPLY[@]} -eq 0 ]] && \
|
||||||
|
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
getextradata)
|
getextradata)
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user