]> rtime.felk.cvut.cz Git - jailhouse.git/commit
tools: add bash-completion for the jailhouse-tool
authorBenjamin Block <bebl@mageta.org>
Wed, 27 Aug 2014 17:40:52 +0000 (19:40 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Aug 2014 06:36:29 +0000 (08:36 +0200)
commit270bbd400841bcb506a819b732ad8598931abd69
tree22704ae79d0e13adbca3638cc9660459bfafec6c
parent31939d62af052bd32a3b7674dc5c60b075733947
tools: add bash-completion for the jailhouse-tool

Because `jailhouse` is the main user-interface to the VM and some
command-chains are quite verbose (create, enable, cell create, cell
load, ...) it is very convenient to have a working bash-completion for
it.

This completes all current uses, although it is very static in some
places (as is the jh-tool) - some argument are only expected at certain
positions, etc.

For it to work, you need to have the `jailhouse`-tool in your
PATH-variable (obviously for the tool itself to work, you will likely
also need all other tools in PATH). Then just run

> . tools/jailhouse_bashcompletion

and it should work. You also need the bash-completion package installed
on your distribution and activated in your bash, otherwise the
source-operation will do nothing. For more details please read the
header of the file.

Known Bug: cell-namens as argument for the cell-subcommands can't contain
           spaces

Signed-off-by: Benjamin Block <bebl@mageta.org>
[Jan: removed restriction to .bin files]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-completion.bash [new file with mode: 0644]