[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 10:54:23 CEST 2023


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

Paul Derscheid <paul.derscheid at lmscloud.de> changed:

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

--- Comment #10 from Paul Derscheid <paul.derscheid at lmscloud.de> ---
Created attachment 153760
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153760&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 --params '{"msg": "this is awesome"}'
3. Note the following CLI messages:
This is a custom method that you're seeing on the CLI!
We got a message: this is awesome

Signed-off-by: Paul Derscheid <paul.derscheid at lmscloud.de>

Great stuff! Example works flawlessly. I will now try to break it ;)

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


More information about the Koha-bugs mailing list