From 467a32c593287f607c7d0a5cd28bcab79e1ec6ab Mon Sep 17 00:00:00 2001 From: Mathias Elle Date: Sat, 17 Jan 2026 12:14:10 +0100 Subject: [PATCH] fix: update command aliases for consistency and clarity --- README.md | 20 +++++++++---------- .../Hyva/CompatibilityCheckCommand.php | 2 +- src/Console/Command/System/CheckCommand.php | 3 ++- src/Console/Command/System/VersionCommand.php | 3 ++- src/Console/Command/Theme/CleanCommand.php | 2 +- src/Console/Command/Theme/TokensCommand.php | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f7c4dd7..ff21963 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Please ensure that your Magento installation meets this requirement before insta | Theme Type | Support Status | | ------------------------------- | ---------------------------------------------------------- | | 🎯 Magento Standard | ✅ Fully Supported | -| 🚀 Hyvä | ✅ Fully Supported | +| 🚀 Hyvä (TailwindCSS 3.x / 4.x) | ✅ Fully Supported | | 🔄 Hyvä Fallback | ✅ Fully Supported | | 🎨 Custom TailwindCSS (no Hyvä) | ✅ Fully Supported | | 💼 Avanta B2B | ✅ Fully Supported | @@ -31,16 +31,16 @@ Please ensure that your Magento installation meets this requirement before insta ### Available Commands -| Command | Description | Shortcodes | +| Command | Description | Aliases | | ----------------------------------- | --------------------------------------------------------- | ------------------------- | -| `mageforge:system:version` | Shows current and latest version of the module | `m:s:v` | -| `mageforge:system:check` | Get system information (OS, PHP, Database, Node.js, etc.) | `m:s:c` | -| `mageforge:theme:list` | Lists all available themes | `m:t:l` | -| `mageforge:theme:build` | Builds selected themes (CSS/TailwindCSS) | `m:t:b`, `frontend:build` | -| `mageforge:theme:watch` | Starts watch mode for theme development | `m:t:w`, `frontend:watch` | -| `mageforge:hyva:tokens` | Generate Hyvä design tokens (Hyvä themes only) | `m:h:t` | -| `mageforge:hyva:compatibility:check`| Check modules for Hyvä theme compatibility issues | `m:h:c:c`, `hyva:check` | -| `mageforge:theme:clean` | Clean theme static files and cache directories | `m:t:c`, `frontend:clean` | +| `mageforge:theme:list` | Lists all available themes | `frontend:list` | +| `mageforge:theme:build` | Builds selected themes (CSS/TailwindCSS) | `frontend:build` | +| `mageforge:theme:watch` | Starts watch mode for theme development | `frontend:watch` | +| `mageforge:theme:clean` | Clean theme static files and cache directories | `frontend:clean` | +| `mageforge:hyva:compatibility:check`| Check modules for Hyvä theme compatibility issues | `hyva:check` | +| `mageforge:hyva:tokens` | Generate Hyvä design tokens (Hyvä themes only) | `hyva:tokens` | +| `mageforge:system:version` | Shows current and latest version of the module | `system:version` | +| `mageforge:system:check` | Get system information (OS, PHP, Database, Node.js, etc.) | `system:check` | --- diff --git a/src/Console/Command/Hyva/CompatibilityCheckCommand.php b/src/Console/Command/Hyva/CompatibilityCheckCommand.php index 2701060..0dbe5d8 100644 --- a/src/Console/Command/Hyva/CompatibilityCheckCommand.php +++ b/src/Console/Command/Hyva/CompatibilityCheckCommand.php @@ -47,7 +47,7 @@ protected function configure(): void { $this->setName($this->getCommandName('hyva', 'compatibility:check')) ->setDescription('Check modules for Hyvä theme compatibility issues') - ->setAliases(['m:h:c:c', 'hyva:check']) + ->setAliases(['hyva:check']) ->addOption( self::OPTION_SHOW_ALL, 'a', diff --git a/src/Console/Command/System/CheckCommand.php b/src/Console/Command/System/CheckCommand.php index 1fcfbff..4f83df8 100644 --- a/src/Console/Command/System/CheckCommand.php +++ b/src/Console/Command/System/CheckCommand.php @@ -37,7 +37,8 @@ public function __construct( protected function configure(): void { $this->setName($this->getCommandName('system', 'check')) - ->setDescription('Displays system information like PHP version and Node.js version'); + ->setDescription('Displays system information like PHP version and Node.js version') + ->setAliases(['system:check']); } /** diff --git a/src/Console/Command/System/VersionCommand.php b/src/Console/Command/System/VersionCommand.php index c2d69ed..d2e5ff6 100644 --- a/src/Console/Command/System/VersionCommand.php +++ b/src/Console/Command/System/VersionCommand.php @@ -35,7 +35,8 @@ public function __construct( protected function configure(): void { $this->setName($this->getCommandName('system', 'version')) - ->setDescription('Displays the module version and the latest version'); + ->setDescription('Displays the module version and the latest version') + ->setAliases(['system:version']); } /** diff --git a/src/Console/Command/Theme/CleanCommand.php b/src/Console/Command/Theme/CleanCommand.php index 5bdbedc..3096554 100644 --- a/src/Console/Command/Theme/CleanCommand.php +++ b/src/Console/Command/Theme/CleanCommand.php @@ -65,7 +65,7 @@ protected function configure(): void InputOption::VALUE_NONE, 'Show what would be cleaned without actually deleting anything' ) - ->setAliases(['m:t:c', 'frontend:clean']); + ->setAliases(['frontend:clean']); } /** diff --git a/src/Console/Command/Theme/TokensCommand.php b/src/Console/Command/Theme/TokensCommand.php index 574ec4f..6887971 100644 --- a/src/Console/Command/Theme/TokensCommand.php +++ b/src/Console/Command/Theme/TokensCommand.php @@ -47,7 +47,7 @@ public function __construct( protected function configure(): void { $this->setName($this->getCommandName('hyva', 'tokens')) - ->setAliases(['m:h:t']) + ->setAliases(['hyva:tokens']) ->setDescription('Generate Hyvä design tokens from design.tokens.json or hyva.config.json') ->addArgument( 'themeCode',