DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:cli_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
devel:cli_plugins [2018-04-25 16:27] andidevel: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 more DokuWiki features accessible from the [[:cli|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 plugins are based on the [[https://github.com/splitbrain/php-cli|php-cli]] library, it's [[http://splitbrain.github.io/php-cli/|documentation]] might be an additional help. CLI plugins are based on the [[https://github.com/splitbrain/php-cli|php-cli]] library, it's [[http://splitbrain.github.io/php-cli/|documentation]] might be an additional help.
Line 43: Line 43:
  
 <code php> <code php>
 +if(!defined('DOKU_INC')) die();
 +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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki