Added updatecheck command

This commit is contained in:
2023-03-17 19:15:55 +01:00
parent d01352a68a
commit c93cfdb0f1

View File

@@ -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]}"