diff --git a/src/Command/ClearLastImportLogCommand.php b/src/Command/ClearLastImportLogCommand.php index 75ee212..a65d30f 100644 --- a/src/Command/ClearLastImportLogCommand.php +++ b/src/Command/ClearLastImportLogCommand.php @@ -5,6 +5,7 @@ use Jh\Import\Config\Data; use Jh\Import\Entity\ImportHistoryResource; use Magento\Framework\App\ResourceConnection; +use Magento\Framework\Console\Cli; use Magento\Framework\DB\Adapter\AdapterInterface; use Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory; use Symfony\Component\Console\Command\Command; @@ -84,5 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $importName ) ); + + return Cli::RETURN_SUCCESS; } } diff --git a/src/Command/ListImportsCommand.php b/src/Command/ListImportsCommand.php index 09eefbc..10ea90f 100644 --- a/src/Command/ListImportsCommand.php +++ b/src/Command/ListImportsCommand.php @@ -5,6 +5,7 @@ use Jh\Import\Config\Data; use Jh\Import\Locker\Locker; use Magento\Cron\Model\Config; +use Magento\Framework\Console\Cli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; @@ -78,5 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ->render(); $output->writeln(''); + + return Cli::RETURN_SUCCESS; } } diff --git a/src/Command/UnlockImportCommand.php b/src/Command/UnlockImportCommand.php index 60d6c10..b2a29f6 100644 --- a/src/Command/UnlockImportCommand.php +++ b/src/Command/UnlockImportCommand.php @@ -4,6 +4,7 @@ use Jh\Import\Config\Data; use Jh\Import\Locker\Locker; +use Magento\Framework\Console\Cli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -54,5 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->locker->release($importName); $output->writeln(sprintf('The lock for import: "%s" has been released', $importName)); + + return Cli::RETURN_SUCCESS; } } diff --git a/src/Command/ViewLocksCommand.php b/src/Command/ViewLocksCommand.php index 436686a..581b60f 100644 --- a/src/Command/ViewLocksCommand.php +++ b/src/Command/ViewLocksCommand.php @@ -4,6 +4,7 @@ use Jh\Import\Config\Data; use Jh\Import\Locker\Locker; +use Magento\Framework\Console\Cli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputInterface; @@ -63,5 +64,7 @@ function (string $importName) { ->render(); $output->writeln(''); + + return Cli::RETURN_SUCCESS; } } diff --git a/src/Command/ViewLogsCommand.php b/src/Command/ViewLogsCommand.php index 614351a..0134ef8 100644 --- a/src/Command/ViewLogsCommand.php +++ b/src/Command/ViewLogsCommand.php @@ -3,6 +3,7 @@ namespace Jh\Import\Command; use Jh\Import\Config\Data; +use Magento\Framework\Console\Cli; use Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; @@ -122,5 +123,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ]; }, $itemLogCollection->getItems())) ->render(); + + return Cli::RETURN_SUCCESS; } }