1<?php
2
3use splitbrain\phpcli\Options;
4
5/**
6 * DokuWiki Plugin @@PLUGIN_NAME@@ (CLI Component)
7 *
8 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
9 * @author  @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@>
10 */
11class @@PLUGIN_COMPONENT_NAME@@ extends \dokuwiki\Extension\CLIPlugin
12{
13    /** @inheritDoc */
14    protected function setup(Options $options)
15    {
16        $options->setHelp('FIXME: What does this CLI do?');
17
18        // main arguments
19        $options->registerArgument('FIXME:argumentName', 'FIXME:argument description', 'FIXME:required? true|false');
20
21        // options
22        // $options->registerOption('FIXME:longOptionName', 'FIXME: helptext for option', 'FIXME: optional shortkey', 'FIXME:needs argument? true|false', 'FIXME:if applies only to subcommand: subcommandName');
23
24        // sub-commands and their arguments
25        // $options->registerCommand('FIXME:subcommandName', 'FIXME:subcommand description');
26        // $options->registerArgument('FIXME:subcommandArgumentName', 'FIXME:subcommand-argument description', 'FIXME:required? true|false', 'FIXME:subcommandName');
27    }
28
29    /** @inheritDoc */
30    protected function main(Options $options)
31    {
32        // $command = $options->getCmd()
33        // $arguments = $options->getArgs()
34    }
35}
36