@@ 419-434 (lines=16) @@ | ||
416 | * @return array |
|
417 | * @throws \Magento\Framework\Exception\FileSystemException |
|
418 | */ |
|
419 | private function stripTables(InputInterface $input, OutputInterface $output) |
|
420 | { |
|
421 | if (!$input->getOption('strip')) { |
|
422 | return []; |
|
423 | } |
|
424 | ||
425 | $stripTables = $this->resolveDatabaseTables($input->getOption('strip')); |
|
426 | ||
427 | if ($this->nonCommandOutput($input)) { |
|
428 | $output->writeln( |
|
429 | sprintf('<comment>No-data export for: <info>%s</info></comment>', implode(' ', $stripTables)) |
|
430 | ); |
|
431 | } |
|
432 | ||
433 | return $stripTables; |
|
434 | } |
|
435 | ||
436 | /** |
|
437 | * @param InputInterface $input |
|
@@ 442-457 (lines=16) @@ | ||
439 | * @return array |
|
440 | * @throws \Magento\Framework\Exception\FileSystemException |
|
441 | */ |
|
442 | private function excludeTables(InputInterface $input, OutputInterface $output) |
|
443 | { |
|
444 | if (!$input->getOption('exclude')) { |
|
445 | return []; |
|
446 | } |
|
447 | ||
448 | $excludeTables = $this->resolveDatabaseTables($input->getOption('exclude')); |
|
449 | ||
450 | if ($this->nonCommandOutput($input)) { |
|
451 | $output->writeln( |
|
452 | sprintf('<comment>Excluded: <info>%s</info></comment>', implode(' ', $excludeTables)) |
|
453 | ); |
|
454 | } |
|
455 | ||
456 | return $excludeTables; |
|
457 | } |
|
458 | ||
459 | /** |
|
460 | * @param string $list space separated list of tables |