mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added extpack command
This commit is contained in:
24
VBoxManage
24
VBoxManage
@@ -7,7 +7,6 @@
|
||||
#
|
||||
# [1] Sebastian T. Hafner <sonix@own-hero.net>
|
||||
#
|
||||
# [ ] extpack
|
||||
# [ ] getextradata
|
||||
# [ ] guestcontrol
|
||||
# [ ] guestproperty
|
||||
@@ -792,6 +791,29 @@ _VBoxManage() {
|
||||
fi
|
||||
;;
|
||||
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)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user