setDescription('Register shipment numbers and synchronize delivery status with 17TRACK.'); } protected function execute(InputInterface $input, OutputInterface $output): int { if (!$this->config->isEnabled() || $this->config->getApiKey() === '') { $output->writeln('17TRACK is disabled or the API key is missing.'); return Cli::RETURN_FAILURE; } try { $this->sync->execute(); $output->writeln('17TRACK synchronization completed successfully.'); return Cli::RETURN_SUCCESS; } catch (\Throwable $exception) { $output->writeln('' . $exception->getMessage() . ''); return Cli::RETURN_FAILURE; } } }