Phrozn\Runner\CommandLine\Parser::configureCommand PHP Method

configureCommand() private method

Fine tune main command by adding subcommands
private configureCommand ( $paths, array $config ) : Phrozn\Runner\Command
$config array Loaded contents of phrozn.yml
return Phrozn\Runner\Command
    private function configureCommand($paths, $config)
    {
        // options
        foreach ($config['command']['options'] as $name => $option) {
            $this->addOption($name, $option);
        }
        // commands
        $commands = CommandLine\Commands::getInstance()->setPath($paths['configs'] . 'commands');
        foreach ($commands as $name => $data) {
            $this->registerCommand($name, $data);
        }
        return $this;
    }