/Kanboard-Cron_SingleCustomCommand

Skeleton for a plugin that adds ONE new custom command to the CLI-interface

Primary LanguagePHPMIT LicenseMIT

Cron_SingleCustomCommand

Skeleton for a plugin that adds ONE new custom command to the CLI-interface

Purpose of this plugin

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.

Does is actually DO something?

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.

Screenshots

01-CLI-list-single-command

02-CLI-execute-single-command

03-NewTask-SingleCommand-Board

04-NewTask-SingleCommand-Details

Author

  • Manfred Hoffmann
  • License MIT

Requirements

  • Kanboard >= 1.0.35

Installation

You have the choice between 2 methods:

  1. Download the zip file and decompress everything under the directory plugins/Cron_SingleCustomCommand
  2. Clone this repository into the folder plugins/Cron_SingleCustomCommand

Note: Plugin folder is case-sensitive.