mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Bump to 7.0.6
This commit is contained in:
@@ -6,7 +6,7 @@ script. However, in some point of time I've decided to rewrite it almost from
|
|||||||
scratch.
|
scratch.
|
||||||
|
|
||||||
Current version of script was written and tested against VBoxManage in version
|
Current version of script was written and tested against VBoxManage in version
|
||||||
7.0.4, and should contain all commands and their options.
|
7.0.6, and should contain all commands and their options.
|
||||||
|
|
||||||
Unlike other attempts, I've tried to make the script context aware. See the
|
Unlike other attempts, I've tried to make the script context aware. See the
|
||||||
simple session with the VBoxManage command below, to have an idea how it works:
|
simple session with the VBoxManage command below, to have an idea how it works:
|
||||||
|
|||||||
11
VBoxManage
11
VBoxManage
@@ -4,7 +4,7 @@
|
|||||||
# URL: https://bitbucket.org/gryf/vboxmanage-bash-completion
|
# URL: https://bitbucket.org/gryf/vboxmanage-bash-completion
|
||||||
# URL: https://github.com/gryf/vboxmanage-bash-completion
|
# URL: https://github.com/gryf/vboxmanage-bash-completion
|
||||||
# License: 3-clause BSD-style license (see LICENSE file)
|
# License: 3-clause BSD-style license (see LICENSE file)
|
||||||
# Version: 7.0.4
|
# Version: 7.0.6
|
||||||
|
|
||||||
|
|
||||||
_VBoxManage() {
|
_VBoxManage() {
|
||||||
@@ -1517,8 +1517,8 @@ _VBoxManage() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
mktemp)
|
mktemp)
|
||||||
items=( --domain --mode --quiet --secure --tmpdir
|
items=( --directory --domain --mode --quiet --secure
|
||||||
--username --verbose )
|
--tmpdir --username --verbose )
|
||||||
[[ " ${COMP_WORDS[*]} " != *" --password "* &&
|
[[ " ${COMP_WORDS[*]} " != *" --password "* &&
|
||||||
" ${COMP_WORDS[*]} " != *" --passwordfile "* ]] &&
|
" ${COMP_WORDS[*]} " != *" --passwordfile "* ]] &&
|
||||||
items+=(--passwordfile --password)
|
items+=(--passwordfile --password)
|
||||||
@@ -2828,8 +2828,9 @@ _VBoxManage() {
|
|||||||
case "${subcommand}" in
|
case "${subcommand}" in
|
||||||
add|modify)
|
add|modify)
|
||||||
local items=(--target --name --action --active
|
local items=(--target --name --action --active
|
||||||
--vendorid --productid --revision --manufacturer
|
--vendorid --productid --port --revision
|
||||||
--product --remote --serialnumber --maskedinterfaces)
|
--manufacturer --product --remote --serialnumber
|
||||||
|
--maskedinterfaces)
|
||||||
_get_excluded_items "${items[@]}"
|
_get_excluded_items "${items[@]}"
|
||||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user