[Koha-bugs] [Bug 34335] Run Koha plugin method from CLI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 21 03:27:58 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34335

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Created attachment 153746
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153746&action=edit
Bug 34335: Add a script to run Koha plugin methods from the CLI

This change adds a script which allows you to run a method from
a Koha plugin.

Test plan:
0. Apply patch
1. Upload test plugin
2. Run the following:
perl misc/run_koha_plugin.pl --class
Koha::Plugin::Prosentient::CustomMethodPlugin --method awesome_method
3. Note the following CLI message:
This is a custom method that you're seeing on the CLI!
 at /var/lib/koha/kohadev/plugins/Koha/Plugin/Prosentient/CustomMethodPlugin.pm
line 42.

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


More information about the Koha-bugs mailing list