Updated showvminfo command.

This commit is contained in:
2023-03-12 18:50:08 +01:00
parent 4298237cf9
commit dda64a649c

View File

@@ -2390,18 +2390,16 @@ _VBoxManage() {
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
_vms_comp vms _vms_comp vms
else else
if [[ " ${COMP_WORDS[@]} " == *" --log "* ]]; then local items=( --details --machinereadable --log --password-id
COMPREPLY=() --password --password-idid --passwordfile )
elif [[ " ${COMP_WORDS[@]} " == *" --details "* || _get_excluded_items "${items[@]}"
" ${COMP_WORDS[@]} " == *" --machinereadable "* ]]; then COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
local items=(--details --machinereadable)
_get_excluded_items "${items[@]}" case "${prev}" in
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) --log|--passwordfile)
else COMPREPLY=( $(compgen -f -- ${cur}) )
local items=(--details --machinereadable --log) ;;
_get_excluded_items "${items[@]}" esac
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
fi
fi fi
;; ;;