Learn about DokuWiki
Learn about DokuWiki
Compatible with DokuWiki
This command line plugin helps plugin and template developers dealing with the boilerplate required. It can be used to create and extend existing extensions. All required plugin skeletons are auto-downloaded from the DokuWiki plugin wizard.
The plugin is called via bin/plugin.php. It has to be called from within the extension's top level directory. Eg. if you want to use it to mange the
foo plugin, it has to be called from within
lib/plugins/foo. If you want to manage a template named
foo, you need to be in
php ../../../bin/plugin.php dev
The plugin comes with a whole bunch of commands.
Use this to initialize a completely new extension. It will interactively ask for the required info and will create the plugin.info.txt or template.info.txt as well as a README and LICENSE file.
This has to be called from a completely empty directory! The plugin will initialize a new git repository.
php ../../../bin/plugin.php dev init
Use this command to add a Unit Test. You can give a class name as parameter, or leave it off to simple add the standard GeneralTest.
php ../../../bin/plugin.php dev addTest php ../../../bin/plugin.php dev addTest Something
This created the configuration files (eg. the
conf/ folder) to make your extension configurable via the Configuration Manager.
This adds the English default files for localizing your extension (eg. the
php ../../../bin/plugin.php dev addLang
Using this command, you can add a new component to your extension. It requires a parameter to specify the type of component you want (
cli). A optional second parameter allows you to specify a component name.
# create a syntax.php: php ../../../bin/plugin.php dev addComponent syntax # create a helper/foobar.php php ../../../bin/plugin.php dev addComponent helper foobar
This creates the deleted.files File for your extension based on previous commits.
php ../../../bin/plugin.php dev deletedFiles
This command will check your extension for files that are no longer needed and deletes them.
php ../../../bin/plugin.php dev rmObsolete