diff options
author | Andreas Gohr <andi@splitbrain.org> | 2017-11-10 17:48:16 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2017-11-10 17:48:16 +0100 |
commit | eb8d789e05c1d5726e56c09a7f88fff58875fb2c (patch) | |
tree | 97d3525c554b12f3045d4584f92d778a39190a5b /lib/plugins/cli.php | |
parent | 39bceb982dfe14e33bca67f2ecfdbb3de5d14f5f (diff) | |
download | dokuwiki-eb8d789e05c1d5726e56c09a7f88fff58875fb2c.tar.gz dokuwiki-eb8d789e05c1d5726e56c09a7f88fff58875fb2c.zip |
Introducing a new Plugin type: CLI
Now plugins can create their own command line interfaces. They are
executed through a single entry point in bin/plugin.php
Diffstat (limited to 'lib/plugins/cli.php')
-rw-r--r-- | lib/plugins/cli.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/plugins/cli.php b/lib/plugins/cli.php new file mode 100644 index 000000000..721f54779 --- /dev/null +++ b/lib/plugins/cli.php @@ -0,0 +1,11 @@ +<?php + +/** + * Base class for CLI plugins + * + * Provides DokuWiki plugin functionality on top of phpcli + */ +abstract class DokuWiki_CLI_Plugin extends \splitbrain\phpcli\CLI implements DokuWiki_PluginInterface { + use DokuWiki_PluginTrait; + +} |