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:
18
VBoxManage
18
VBoxManage
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user