]> git.koha-community.org Git - koha.git/commit
Bug 14714: Add tab-completion to koha-mysql command
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Aug 2015 18:44:22 +0000 (15:44 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 26 Aug 2015 13:44:01 +0000 (10:44 -0300)
commit55a52c1218a672dc770b9f0cf4e20501f73ba153
treecfbc585aa36d48f6b3fece40106258a5400ee8c7
parente09e7152b6af1f2cb3d2e78eff317cdf77cbf5f2
Bug 14714: Add tab-completion to koha-mysql command

This patch introduces tab-completion in bash to the koha-mysql
command. It completes using valid instance names. It stops completing
once an instance name is chosen (i.e. it respects the fact that
koha-mysql accepts only one instance name as parameter).

To test:
- Have a packages install (kohadevbox works)
- Run:
  $ . debian/koha-common.bash-completion
- Type
  koha-mysql <tab>
=> SUCCESS: You are prompted valid instance names for completion.
- Sign off :-D

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/koha-common.bash-completion