]> git.koha-community.org Git - koha.git/commit
Bug 14727: koha-indexer tab completion in bash
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 25 Aug 2015 15:17:17 +0000 (12:17 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Oct 2015 14:37:55 +0000 (11:37 -0300)
commit9043a27b03d10ad1408ead06c1af42c07a4c4610
tree0ca2905038fa7fa44e76353cf7375ee46aa06370
parent3e77acc24d0cde1c353a1f86d37db77db899c08b
Bug 14727: koha-indexer tab completion in bash

This patch introduces tab-completion in bash to the koha-indexer
command. It completes using valid option switches and instance names.
It stops completing then -h or --help are issued, and once a command
switch is chosen (either --start, --stop or --restart) it goes ahead
with valid instances completion.

To test:
- Have a packages install (kohadevbox works)
- Run:
  $ . debian/koha-common.bash-completion
- Type
  koha-indexer <tab>
- Play with all the options
=> SUCCESS: They work as they should.
- Sign off :-D

Note: it fixes a small glitch on the plack completion.

Signed-off-by: Jesse Weaver <pianohacker@gmail.com>
Verified working, including filtering out already used options and
instances.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/koha-common.bash-completion