mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added updatecheck command
This commit is contained in:
30
VBoxManage
30
VBoxManage
@@ -2868,6 +2868,36 @@ _VBoxManage() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
updatecheck)
|
||||||
|
if [[ ${prev} == ${cmd} ]]; then
|
||||||
|
COMPREPLY=( $(compgen -W "list modify perform" -- ${cur}) )
|
||||||
|
else
|
||||||
|
subcommand=${COMP_WORDS[2]}
|
||||||
|
case "${subcommand}" in
|
||||||
|
list|perform)
|
||||||
|
items=( --machine-readable )
|
||||||
|
_get_excluded_items "${items[@]}"
|
||||||
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
modify)
|
||||||
|
case "${prev}" in
|
||||||
|
--channel)
|
||||||
|
COMPREPLY=( $(compgen -W "stable withbetas all" \
|
||||||
|
-- ${cur}) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
items=( --channel --frequency )
|
||||||
|
[[ " ${COMP_WORDS[*]} " != *" --enable "* &&
|
||||||
|
" ${COMP_WORDS[*]} " != *" --disable "* ]] &&
|
||||||
|
items+=( --enable --disable )
|
||||||
|
_get_excluded_items "${items[@]}"
|
||||||
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
usbdevsource)
|
usbdevsource)
|
||||||
if [[ COMP_CWORD -ge 3 ]]; then
|
if [[ COMP_CWORD -ge 3 ]]; then
|
||||||
subcommand="${COMP_WORDS[2]}"
|
subcommand="${COMP_WORDS[2]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user