From 5ca12c457c47055898aa7100cfbbf9944582cbcc Mon Sep 17 00:00:00 2001 From: Rik Willems <> Date: Thu, 26 Mar 2026 15:57:20 +0100 Subject: [PATCH] Rename console commands to match what they do --- ...eTest.php => TranslateProductSelectAttributeOptions.php} | 6 +++--- .../Command/{TestProcedure.php => TranslateProducts.php} | 6 +++--- etc/di.xml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename Console/Command/{SelectAttributeTest.php => TranslateProductSelectAttributeOptions.php} (82%) rename Console/Command/{TestProcedure.php => TranslateProducts.php} (86%) diff --git a/Console/Command/SelectAttributeTest.php b/Console/Command/TranslateProductSelectAttributeOptions.php similarity index 82% rename from Console/Command/SelectAttributeTest.php rename to Console/Command/TranslateProductSelectAttributeOptions.php index 388363e..6cf6fec 100644 --- a/Console/Command/SelectAttributeTest.php +++ b/Console/Command/TranslateProductSelectAttributeOptions.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -class SelectAttributeTest extends Command +class TranslateProductSelectAttributeOptions extends Command { /** * @param TranslateSelectAttributes $translateSelectAttributes @@ -27,8 +27,8 @@ public function __construct( */ protected function configure(): void { - $this->setName('mage-os:select-attribute:test'); - $this->setDescription('Test select attribute translation'); + $this->setName('mage-os:translate:product-select-attribute-options'); + $this->setDescription('Translate product select attribute options'); parent::configure(); } diff --git a/Console/Command/TestProcedure.php b/Console/Command/TranslateProducts.php similarity index 86% rename from Console/Command/TestProcedure.php rename to Console/Command/TranslateProducts.php index 211089f..994514a 100644 --- a/Console/Command/TestProcedure.php +++ b/Console/Command/TranslateProducts.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -class TestProcedure extends Command +class TranslateProducts extends Command { /** * @param TranslateProductsInterface $translateProducts @@ -27,8 +27,8 @@ public function __construct( */ protected function configure(): void { - $this->setName('mage-os:procedure:test'); - $this->setDescription('Test the translation procedure by shell'); + $this->setName('mage-os:translate:products'); + $this->setDescription('Translate products'); parent::configure(); } diff --git a/etc/di.xml b/etc/di.xml index b050488..dcf1efa 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -19,8 +19,8 @@ MageOS\AutomaticTranslation\Console\Command\TestTranslation - MageOS\AutomaticTranslation\Console\Command\TestProcedure - MageOS\AutomaticTranslation\Console\Command\SelectAttributeTest + MageOS\AutomaticTranslation\Console\Command\TranslateProducts + MageOS\AutomaticTranslation\Console\Command\TranslateProductSelectAttributeOptions