Example #1
0
 public function execute(Input $input, Output $output)
 {
     $commands = $this->getConsole()->getCommands();
     $output->br();
     foreach ($commands as $command) {
         $output->padding(20)->label($command->getName())->result($command->getDescription());
     }
     $output->br();
 }
Example #2
0
 protected function version(Input $input, Output $output)
 {
     $console = $this->getConsole();
     $output->out($console->getName() . ($console->getVersion() ? ' version ' . $console->getVersion() : ''));
 }