code: protected function execute(InputInterface $input, OutputInterface $output): int
      {
          try {
              $output->writeln(PackageUtil::getVersion('contao/core-bundle'));
          } catch (\OutOfBoundsException $e) {
              $output->writeln(PackageUtil::getVersion('contao/contao'));
          }
  
          return 0;
      }
docs: {@inheritdoc}