mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added hostnet command.
Note, that even if in vboxmanage help there is such command, says vboxmanage (v7.0.6 at time of writing) refuses to execute it. Perhaps it's a subject to change in the future.
This commit is contained in:
23
VBoxManage
23
VBoxManage
@@ -1804,6 +1804,29 @@ _VBoxManage() {
|
||||
fi
|
||||
;;
|
||||
|
||||
hostonlynet)
|
||||
if [[ ${prev} == ${cmd} ]]; then
|
||||
COMPREPLY=( $(compgen -W "add modify remove" -- ${cur}) )
|
||||
else
|
||||
subcommand=${COMP_WORDS[2]}
|
||||
if [[ " ${COMP_WORDS[*]} " != *" --name"* &&
|
||||
" ${COMP_WORDS[*]} " != *" --id"* ]]; then
|
||||
COMPREPLY=( $(compgen -W "--name --id" -- ${cur}) )
|
||||
else
|
||||
case "${subcommand}" in
|
||||
add|modify)
|
||||
items=( --netmask --lower-ip --upper-ip )
|
||||
[[ " ${COMP_WORDS[*]} " != *" --enable "* &&
|
||||
" ${COMP_WORDS[*]} " != *" --disable "* ]] &&
|
||||
items+=( --enable --disable )
|
||||
_get_excluded_items "${items[@]}"
|
||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
import)
|
||||
items=(--basefolder --cloud --cloudbucket --cloudinstanceid
|
||||
--cloudprofile --controller --cpus --description --disk
|
||||
|
||||
Reference in New Issue
Block a user