You are here

protected function ExportCommand::execute in Configuration Split 8

File

src/Command/ExportCommand.php, line 38

Class

ExportCommand
Class ExportCommand.

Namespace

Drupal\config_split\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) {
  try {

    // Make the magic happen.
    $this->cliService
      ->ioExport($input
      ->getOption('split'), $this
      ->getIo(), [
      $this,
      't',
    ], $input
      ->getOption('yes'));
  } catch (\Exception $e) {
    $this
      ->getIo()
      ->error($e
      ->getMessage());
  }
}