[Koha-bugs] [Bug 14727] koha-indexer tab completion in bash

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Oct 10 02:13:30 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14727

Jesse Weaver <jweaver at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #41933|0                           |1
        is obsolete|                            |

--- Comment #2 from Jesse Weaver <jweaver at bywatersolutions.com> ---
Created attachment 43314
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43314&action=edit
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 at gmail.com>
Verified working, including filtering out already used options and
instances.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list