mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Updated showvminfo command.
This commit is contained in:
22
VBoxManage
22
VBoxManage
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user