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(); }
protected function version(Input $input, Output $output) { $console = $this->getConsole(); $output->out($console->getName() . ($console->getVersion() ? ' version ' . $console->getVersion() : '')); }