Koha-clms/debian/scripts
Tomas Cohen Arazi 3772f30a0c Bug 10094 - koha-list should have a --disabled option switch
This patch adds that (--disabled) option switch, Also revisits some of the code and docs.

To test:
- Apply the patch and create new packages (you might just drop the koha-list command somewhere)
- Create several instances (koha-create)
- Randomly set some as disabled, others enabled and enable email on some.
- Test all possible option switches combinations

Expected results:
- koha-list should abort with a proper message if mutually exclusive options selected (--email vs. --noemail, --enabled vs. --disabled)
- koha-list should show the exact instances you asked for

Regards
To+

P.S.: I wanted to add the --disabled option switch for the tab-completion work I'm doing, but as of bug 4876 I thought it would be ok to revisit the script to make it robust and clear.

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>

Does what it says, and cleans up the script at the same time.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit de275ec128)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-05-15 09:34:19 -04:00
..
koha-create Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-create-dirs Bug 7008 - create tmp dir for zebra 2011-12-03 07:56:44 +01:00
koha-disable Bug 10104 - Followup: fix param check 2013-05-01 22:29:52 -04:00
koha-dump Bug 8268: Add database dump to export tool 2012-07-12 17:40:21 +02:00
koha-dump-defaults Bug 5509 - use an XML parser to get values from config 2011-04-28 13:35:25 +12:00
koha-email-disable Bug 10150 - koha-email-disable error handling 2013-05-03 19:26:23 -04:00
koha-email-enable Bug 10157 - koha-email-enable error handling 2013-05-15 09:33:37 -04:00
koha-enable Bug 10101 - Follwup: fix param check 2013-05-01 22:30:15 -04:00
koha-enable-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:30:25 -04:00
koha-foreach Bug 5510: prepend output with system name 2010-12-19 07:10:06 +13:00
koha-list Bug 10094 - koha-list should have a --disabled option switch 2013-05-15 09:34:19 -04:00
koha-mysql Bug 6486 - add the koha-mysql command 2011-08-18 21:20:52 +12:00
koha-rebuild-zebra Bug 10159 - koha-rebuild-zebra error handling 2013-05-15 09:33:19 -04:00
koha-remove Bug 8162: allow packages to work on Ubuntu Precise 2012-08-29 13:46:04 +02:00
koha-reset-passwd Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-restart-zebra Bug 10149 - koha-restart-zebra error handling (rewording) 2013-05-01 22:29:11 -04:00
koha-restore Bug 7216 - koha-restore does not correctly set home 2011-12-06 17:01:56 +01:00
koha-run-backups Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
koha-shell Bug 8878 - a command to provide a shell with the koha environment 2012-12-20 08:01:46 -05:00
koha-start-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:30:25 -04:00
koha-start-zebra Bug 10144 - koha-start-zebra error handling 2013-05-01 22:29:17 -04:00
koha-stop-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:30:25 -04:00
koha-stop-zebra Bug 10146 - koha-stop-zebra error handling 2013-05-15 09:34:11 -04:00
koha-translate Bug 10041 - Provide a koha-translate script to aid package users on installing translations 2013-05-01 22:30:21 -04:00
koha-upgrade-schema Add koha-upgrade-schema, a script to upgrade the database schema. 2010-05-25 07:59:35 -04:00
koha-upgrade-to-3.4 Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00