4 class Cli extends UserInterface
6 protected function loadParameters()
8 $parser = parent::loadParameters();
9 //set default renderer to console
10 $parser->options['renderer']->default = 'console';
15 'description' => 'Show README.rst file'
20 'description' => 'Extract configuration file'
27 protected function handleCommands($res)
29 if ($res->command_name == '') {
31 } else if ($res->command_name == 'readme') {
33 } else if ($res->command_name == 'config') {
34 $this->extractConfig();
36 throw new \Exception('Unknown command');
40 protected function showReadme()
42 readfile(__DIR__ . '/../../README.rst');
46 protected function extractConfig()
48 readfile(__DIR__ . '/../../data/bdrem.config.php.dist');