Skeleton for a plugin that adds ONE new custom command to the CLI-interface
This is not meant to be a (really) productive plugin, but rather the starting point if you want to develop a plugin that is supposed to add ONE custom command to the CLI-interface of Kanboard.
I made this, while trying to figure out how to make a plugin that can act as a CRON-command and thought I'd share it here, so that others can also use and (if necessary) improve this skeleton.
If you plan to make a plugin that is supposed to add more than ONE custom command to the CLI-interface ... take a look at another version of this skeleton.
If you are only interested in adding a new custom "batch"-command to the CLI, take a look at this skeleton.
Yes ... this is in fact a fully functioning plugin in order to demonstrate the basic concept.
Whenever being called via php cli my-single-custom-command
it will create a new task in a project with ID 1 and use user-ID 1 as the creator of the new task.
- Manfred Hoffmann
- License MIT
- Kanboard >= 1.0.35
You have the choice between 2 methods:
- Download the zip file and decompress everything under the directory
plugins/Cron_SingleCustomCommand
- Clone this repository into the folder
plugins/Cron_SingleCustomCommand
Note: Plugin folder is case-sensitive.