devel:cli_plugins
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
devel:cli_plugins [2018-04-25 16:27] – andi | devel:cli_plugins [2019-08-04 20:39] – refer :cli Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== CLI Plugins ====== | ====== CLI Plugins ====== | ||
- | CLI (Command Line Interface) plugins give you an easy way to provide DokuWiki features accessible from the command line. This is mostly useful as component in a larger plugin where certain functionality should be run from Cron jobs or by experienced Administrators only. | + | CLI (Command Line Interface) plugins give you an easy way to provide |
CLI plugins are based on the [[https:// | CLI plugins are based on the [[https:// | ||
Line 43: | Line 43: | ||
<code php> | <code php> | ||
+ | if(!defined(' | ||
+ | use splitbrain\phpcli\Options; | ||
+ | |||
class cli_plugin_example extends DokuWiki_CLI_Plugin { | class cli_plugin_example extends DokuWiki_CLI_Plugin { | ||
devel/cli_plugins.txt · Last modified: 2023-09-02 00:16 by Klap-in