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
_vms_comp vms
else
if [[ " ${COMP_WORDS[@]} " == *" --log "* ]]; then
COMPREPLY=()
elif [[ " ${COMP_WORDS[@]} " == *" --details "* ||
" ${COMP_WORDS[@]} " == *" --machinereadable "* ]]; then
local items=(--details --machinereadable)
local items=( --details --machinereadable --log --password-id
--password --password-idid --passwordfile )
_get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
else
local items=(--details --machinereadable --log)
_get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
fi
case "${prev}" in
--log|--passwordfile)
COMPREPLY=( $(compgen -f -- ${cur}) )
;;
esac
fi
;;