98 Commits

Author SHA1 Message Date
c051a4ed9d Merge pull request #15 from borekon/patch-1
added the ubuntu default bash completion folder
2025-06-09 09:37:26 +02:00
Alfonso
593ec245e5 added the ubuntu default bash completion folder
~/.local/share/bash-completion is the default if if $XDG_DATA_HOME is not set
2025-06-06 09:59:55 +02:00
e681abb354 Bump to version 7.0.22 2025-01-01 16:37:40 +01:00
cd90fc60bd Bump to version 7.0.20 2024-10-07 11:16:01 +02:00
28553da42d Bump to version 7.0.14 2024-04-30 10:12:27 +02:00
3efab392c1 Bump to 7.0.12 2024-02-12 21:17:24 +01:00
b0352554bb Merge pull request #14 from mattalexx/patch-1
Use `grep -E` instead of `egrep` to suppress warnings
2024-02-12 21:15:01 +01:00
Matt Alexander
95088850b6 Use grep -E instead of egrep to suppress warnings
The messages were getting in the way:
```
 $ VBoxManage createvm --name=Win10-3 --ostype Wegrep: warning: egrep is obsolescent; using grep -E
indowsegrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E

Windows10        Windows2000      Windows2008      Windows2016_64   Windows31        Windows8         Windows8_64      WindowsMe        WindowsNT4       WindowsVista_64
Windows10_64     Windows2003      Windows2008_64   Windows2019_64   Windows7         Windows81        Windows95        WindowsNT        WindowsNT_64     WindowsXP
Windows11_64     Windows2003_64   Windows2012_64   Windows2022_64   Windows7_64      Windows81_64     Windows98        WindowsNT3x      WindowsVista     WindowsXP_64
matt@q ~ $ VBoxManage createvm --name=Win10-3 --ostype Windowsegrep: warning: egrep is obsolescent; using grep -E

Windows10        Windows2000      Windows2008      Windows2016_64   Windows31        Windows8         Windows8_64      WindowsMe        WindowsNT4       WindowsVista_64
Windows10_64     Windows2003      Windows2008_64   Windows2019_64   Windows7         Windows81        Windows95        WindowsNT        WindowsNT_64     WindowsXP
Windows11_64     Windows2003_64   Windows2012_64   Windows2022_64   Windows7_64      Windows81_64     Windows98        WindowsNT3x      WindowsVista     WindowsXP_64
```
2024-02-12 05:06:39 -06:00
3404afa441 Added support for other names than vboxmanage.
Currently the completion script will be available for commands:
VBoxManage and vboxmanage. With this commit, renaming/linking this
script with another name will also make that name to be included to
completion.

For example, with alias:

    $ alias vb="VBoxManage"

linkig completion script into new name an source it:

    $ cd /path/of/completion/script/
    $ ln -s VBoxManage vb
    # source vb

will start to complete vb command.
2023-11-02 18:14:29 +01:00
ab6d9f7cd9 Added missing completions for cloud related commands.
Also, removed trailing spaces.
2023-11-02 18:11:41 +01:00
3bb795a1e3 Bump to 7.0.10 2023-09-11 10:30:29 +02:00
468a0a4c32 Bump to 7.0.8 2023-06-23 18:26:15 +02:00
59ffe61fd6 Bump to 7.0.6 2023-03-20 12:43:40 +01:00
7c13b0ab6b Bump to version 7.0.4 2023-03-20 12:36:51 +01:00
67ac4d655f Updated natnetwork command 2023-03-20 11:33:21 +01:00
8dd76f3295 Fix typos with COMP_CWORD varialble 2023-03-19 18:55:25 +01:00
8fd579c2cd Updated convertfromraw command 2023-03-19 18:41:01 +01:00
51a393f8fe Updated mediumproperty command 2023-03-19 17:17:20 +01:00
f23ce2aedb Update clonemedium command 2023-03-19 17:13:36 +01:00
350e0aedaf Update createmedium command 2023-03-19 16:40:01 +01:00
25d7fb4048 Update bandwithctl command 2023-03-19 16:36:37 +01:00
0077621f1b Update storagectl command 2023-03-19 16:34:40 +01:00
52aa7111fa Update storageattach command 2023-03-19 16:27:42 +01:00
c93cfdb0f1 Added updatecheck command 2023-03-17 19:15:55 +01:00
d01352a68a Sorted commands 2023-03-17 19:07:38 +01:00
5da82d54da 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.
2023-03-17 18:55:58 +01:00
d2c25f9805 Updates showmediuminfo command 2023-03-14 20:22:02 +01:00
170b3a69d9 Added modifynvram command 2023-03-14 20:04:54 +01:00
ca2073b686 Added signova command. 2023-03-14 19:00:33 +01:00
4d6210b599 Fix run and start subcommands for guestcontrol 2023-03-14 19:00:10 +01:00
b231c43740 Updated cloud related commands 2023-03-14 17:52:43 +01:00
d60719b8e2 Updated unattended command 2023-03-13 18:23:46 +01:00
a839731fe6 Updated debugvm command 2023-03-13 18:14:27 +01:00
4557521b27 Updated dhcpserver command 2023-03-13 17:56:56 +01:00
507b4aa0bd Updated mediumio command 2023-03-13 17:31:02 +01:00
8d90209fcc Updated export command 2023-03-13 17:26:48 +01:00
c212439a64 Updated import command 2023-03-13 17:10:43 +01:00
12e85b78da Updated controlvm command 2023-03-13 15:54:56 +01:00
385c78df30 Updated startvm command 2023-03-13 14:41:13 +01:00
ce1c0c1b19 Added encryptvm command 2023-03-13 13:25:15 +01:00
7c42bcd22f Updated clonevm command 2023-03-13 12:45:34 +01:00
417fc3132f Updated modifyvm command. 2023-03-12 18:56:12 +01:00
d505a106fa Updated createvm command. 2023-03-12 18:53:20 +01:00
aa31561a45 Updated registervm command. 2023-03-12 18:51:07 +01:00
dda64a649c Updated showvminfo command. 2023-03-12 18:50:08 +01:00
4298237cf9 Changed a way how vboxmanage commands are obtained.
Starting from 7.x version of VirtualBox, vboxmanage command help gives
its usage with one or more lines per command, like:

  VBoxManage command <args> [--option1|--option2] [--option3=optarg ]

There is no need to get it as in old format from now on.
2023-03-12 18:44:37 +01:00
c7a5fc729c Bump to version 6.1.38 2022-10-08 09:12:03 +02:00
62d9078b23 Version bump 2022-08-29 10:20:38 +02:00
3f42dd2dc1 Version bump. 2022-07-25 11:15:06 +02:00
6ee3136033 Version bump. 2022-07-25 11:14:24 +02:00
cf367c093d Bump to 6.1.28.
There was a minor change regarding export command: --iso parameter has
been removed.
2021-12-07 21:21:57 +01:00
7174fe03db Bump to version 6.1.22.
There were cloud network command added.
2021-08-01 17:40:51 +02:00
f2d71065cb Removed trailing spaces. 2021-08-01 17:39:56 +02:00
82e2fade6b Change approach with getting commands out of help.
There are currently two ways for specify available commands in
vboxmanage help:

Usage:

  VBoxManage [<general option>] <command>
[..]
Commands:

  command1 ...

  command2 ...

and:

  VBoxManage command3 ...

  VBoxManage command4 ...

besides the fact how it is annoying for parsing the output (or lack of
having some way for machine readable format for commands), I have
treated the latter as a exception from general rule, but lately it
slowly moving towards the second form. In this patch it is adapted to
also parse second format instead of adding those commands manually.

Also, there was missing parameter added for sharedfolder add command.
2021-07-27 20:10:58 +02:00
8360d95123 Bump to 6.1.10 2020-07-21 14:30:48 +02:00
12b0f38741 Bump to version 6.1.6 2020-05-18 20:06:25 +02:00
808c4ac277 Merge pull request #10 from schplurtz/sedasfunc
define sed as a function
2020-02-17 08:00:53 +01:00
Schplurtz le Déboulonné
31a7eec15a use sed from global var VBMC_SED instead of function 2020-02-16 18:45:56 +01:00
Schplurtz le Déboulonné
0ffc79dbe2 fix syntax error in _vbmc_sed 2020-02-15 23:13:26 +01:00
Schplurtz le Déboulonné
1ed71c9253 define sed as a function 2020-02-15 14:55:06 +01:00
35bce20ef5 Bump to 6.1.0 2019-12-25 12:24:22 +01:00
c8301459df Command extapck will be available on topmost completion again. 2019-12-22 19:06:05 +01:00
ab0cc7aea4 Fixes for modifyvm options completion. 2019-12-22 19:03:09 +01:00
f73e80c7ad Fixed list command 2019-12-22 19:03:09 +01:00
10900543fa Bump to version 6.0.12.
Changed videocap to recording in modifyvm and controlvm, changed from
usb to usbohci in modifyvm command, added new movevm and mediumio
commands and cloud related options.
2019-12-22 19:02:50 +01:00
1be3e589d4 Bump to 5.2.32 version 2019-09-16 07:24:42 +02:00
9c5b048c62 Bump to 5.2.26
Added guesttohost and bidirectional parameters for --draganddrop option
for both: controlvm and modifyvm.
2019-04-23 19:14:39 +02:00
5fd18d7cec Removed redundant --videocapopts from modifyvm 2019-04-23 19:14:39 +02:00
05af06f337 Merge pull request #7 from schplurtz/comp_words
change comp_words to upper case
2019-02-19 19:21:21 +01:00
cde78c8e4c Merge pull request #6 from schplurtz/snaplist
handle snapshot completion entirely with awk
2019-02-19 19:19:39 +01:00
Schplurtz le Déboulonné
197c46cd35 change comp_words to upper case 2019-02-19 10:58:37 +01:00
Christophe Martin
296be19560 handle snapshot completion entirely with awk
fixes #5
Also list and complete snapshot uuid.
2019-02-19 10:41:23 +01:00
62f57ebbb7 Added level 1 data cache options.
New options are added to modifyvm command:
- --l1d-flush-on-sched
- --l1d-flush-on-vm-entry
2018-11-28 20:21:06 +01:00
d4f56a0d6b Added unattended command. 2018-09-09 15:58:14 +02:00
f8b5981935 Corrected file/dir completions. 2018-09-08 17:41:02 +02:00
d027094e7c Added new options for commands.
In version 5.2.14 of VirtualBox, new options for following commands has
been added. Adjusted completion accordingly.

- list (-s|--sorted)
- modifyvm (--cpiudset -> --cpuid-set, --cpuidremove -> --cpuid-remove,
  --audioin, --audioout)
- export (new file format choice: --opc10)
- startvm (-E|--putenv)
- conrolvm (keyboardputstring, keyboardputfile, audioin, audioout)
- storageattach (--passwordfile)
- modifymedium (--description)
2018-09-08 16:47:50 +02:00
e90270e8ee Added speculation control to modifyvm command 2018-05-27 17:56:19 +02:00
11a0844c4d Added two new options for modifyvm
New options was added to VBoxManage in verstion 5.1.32:

* --ibpb-on-vm-exit
* --ibpb-on-vm-entry
2018-01-24 19:10:45 +01:00
9b06c430fd Added new subcommand for debugvm
VBoxManage removed "debug" from list of commands in help, leaving only
description for "debugvm" in section "Introspection and guest debugging"
below all of the list, so that it is needed for adding "debugvm" to the
list of available commands manually.

Also "stack", new subcommand was added to "debugvm".
2017-10-08 10:20:27 +02:00
fbdd259cac Added support for usbdevsource command 2017-10-08 09:11:20 +02:00
d79a8bc280 Whitespaces housekeeping 2017-10-08 09:03:11 +02:00
20b1ef9fab Fix for catching usbfilter command 2017-10-08 09:01:25 +02:00
1674acbe92 Aded 'list' for natnetwork command 2017-10-07 19:29:22 +02:00
9b7ab10421 Command modifymedium have now additional option --move 2017-10-07 19:28:22 +02:00
47e3ff6bbe Added more options for storagectl option
options --add and --controller now have additional options:

usb
pcie

for `--add` and

USB
NVMe

for `--controller'.
2017-10-07 19:26:17 +02:00
f81bfe514f Modified 'modifyvm' command
Added new options for modifyvm command:

--apic
--x2apic
--paravirtdebug
--cpu-profile
--biosapic
2017-10-07 19:22:28 +02:00
a78a03286a Changed option '--no-profile' to '--profile' in gustecontrol run command 2017-10-07 19:21:36 +02:00
04fba0a65a Bumped supported VirtualBox version 2017-07-29 09:19:23 +02:00
26eeb62a6d Added alias for lowercase 'vboxmanage' support 2017-01-31 19:17:15 +01:00
88566ade92 Bump to VirtualBox 5.0.18 2016-07-16 17:30:03 +02:00
fcc43508e6 Updated list, closemedium, controlvm, modifyvm, natnetwork
and several other commands.
2016-07-05 19:59:50 +02:00
c6e71c51d9 Added missing options to version 4.3.32 2016-07-04 21:28:19 +02:00
2860d4e247 Readme update 2016-03-06 13:56:57 +01:00
e4618d52a5 Make startvm command complete only not running vms 2016-03-06 13:33:11 +01:00
6251330e9b Removed not used image 2016-03-06 13:31:04 +01:00
c05e1c4758 Added images directory, and first image 2016-03-06 09:51:15 +01:00
8c9812799d Added installation instructions and license 2015-09-03 20:17:26 +02:00
6db5b8c816 Update to VB version 2.3.28 2015-08-06 21:15:12 +02:00
6 changed files with 1701 additions and 487 deletions

24
LICENSE Normal file
View File

@@ -0,0 +1,24 @@
Copyright (c) 2015, Roman Dobosz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the organization nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL ROMAN DOBOSZ BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

8
README
View File

@@ -1,8 +0,0 @@
VBoxManage bash completion script.
This version of the completion was initially based on Sebastian T. Hafner
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
4.3.18, and supports all commands (in some extent ;)).

57
README.rst Normal file
View File

@@ -0,0 +1,57 @@
VBoxManage bash completion script
=================================
This version of the completion was initially based on Sebastian T. Hafner
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.22, 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:
.. image:: /images/vboxmanage_session.gif?raw=true
:alt: VBoxManage session
Note, that ``startvm`` command proposes only VMs, which are not running, while
``controlvm`` will complete only running VMs.
What is worth to mention, this completion script is a real thing, so it only
offer things which have sense for particular commands, for example:
.. image:: /images/vboxmanage_snapshot.gif?raw=true
:alt: Take a snapshot
For ``snapshot take`` subcommand, the only options which are proposed are
``--live`` and ``--description``. Other commands and subcommands are behaving in
similar way.
Installation
============
Either source the file::
$ . /path/to/this/repo/VBoxManage
or add it to a proper place depending on your distribution. Usual place would
be:
* ~/bash-completion.d/
* /usr/local/etc/bash-completion.d/
* /etc/bash_completion.d/
* ~/.local/share/bash-completion
* etc.
It's also okay to copy it into some directory, and place proper line in
``.profile`` or ``.bashrc``::
source /some/directory/VBoxManage
License
=======
This software is licensed under 3-clause BSD license. See LICENSE file for
details.

2099
VBoxManage

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB