mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Bump to version 7.0.20
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.
|
||||
|
||||
Current version of script was written and tested against VBoxManage in version
|
||||
7.0.14, and should contain all commands and their options.
|
||||
7.0.20, and should contain all commands and their options.
|
||||
|
||||
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:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Author: Roman 'gryf' Dobosz <gryf73@gmail.com>
|
||||
# URL: https://github.com/gryf/vboxmanage-bash-completion
|
||||
# License: 3-clause BSD-style license (see LICENSE file)
|
||||
# Version: 7.0.14
|
||||
# Version: 7.0.20
|
||||
|
||||
|
||||
_VBoxManage() {
|
||||
@@ -1045,7 +1045,7 @@ _VBoxManage() {
|
||||
;;
|
||||
|
||||
createvm)
|
||||
items=( --basefolder --cipher --default --group --name --ostype
|
||||
items=( --basefolder --cipher --default --groups --name --ostype
|
||||
--password-id --password --register --uuid )
|
||||
if [[ ${prev} == ${cmd} ]]; then
|
||||
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
|
||||
@@ -1054,7 +1054,7 @@ _VBoxManage() {
|
||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||
|
||||
case "${prev}" in
|
||||
--group)
|
||||
--groups)
|
||||
COMPREPLY=()
|
||||
_group_comp
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user