[Koha-devel] Run Koha plugin method from CLI
David Cook
dcook at prosentient.com.au
Fri Jul 21 03:48:47 CEST 2023
Hi all,
Do you ever want to run a Koha plugin method from the CLI? I know I sure do,
so I raised this issue and attached a patch:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34335
I was able to upload a simple plugin and run the following: perl
misc/run_koha_plugin.pl --class
Koha::Plugin::Prosentient::CustomMethodPlugin --method awesome_method
--params '{"msg": "this is awesome"}'
This could be useful for manual tasks, cronjobs, or whatever really.
David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia
Office: 02 9212 0899
Online: 02 8005 0595
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230721/24ae7123/attachment.htm>
More information about the Koha-devel
mailing list