5 * Contains \Drupal\Console\Core\Command\AboutCommand.
8 namespace Drupal\Console\Core\Command;
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
12 use Symfony\Component\Console\Command\Command;
13 use Drupal\Console\Core\Command\Shared\CommandTrait;
14 use Drupal\Console\Core\Style\DrupalStyle;
16 class AboutCommand extends Command
23 protected function configure()
27 ->setDescription($this->trans('commands.about.description'));
33 protected function execute(InputInterface $input, OutputInterface $output)
35 $io = new DrupalStyle($input, $output);
36 $application = $this->getApplication();
38 $aboutTitle = sprintf(
40 $application->getName(),
41 $application->getVersion()
44 $io->setDecorated(false);
45 $io->title($aboutTitle);
46 $io->setDecorated(true);
50 $this->trans('commands.init.description'),
54 // $this->trans('commands.common.messages.quick-start'),
55 // 'drupal quick:start'
58 // $this->trans('commands.site.new.description'),
62 $this->trans('commands.site.install.description'),
68 $this->trans('commands.list.description'),
73 foreach ($commands as $command => $commandInfo) {
74 $io->writeln($commandInfo[0]);
76 $io->comment(sprintf(' %s', $commandInfo[1]));
80 $io->setDecorated(false);
81 $io->section($this->trans('commands.self-update.description'));
82 $io->setDecorated(true);
83 $io->comment(' drupal self-update');