From 6b07088189494d88df579381e6be646f16dc80d5 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 27 Oct 2024 12:24:39 +0000 Subject: [PATCH 1/3] cli Alias support in 1.7 --- .../Application/CommandLoader/PluginCommandLoader.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php b/system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php index f550c518e4..210250c64f 100644 --- a/system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php +++ b/system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php @@ -57,6 +57,14 @@ public function __construct(string $name) $command = new $command_class(); if ($command instanceof Command) { $this->commands[$command->getName()] = $command; + + // If the command has an alias, add that as a possible command name. + $aliases = $this->commands[$command->getName()]->getAliases(); + if (isset($aliases)) { + foreach ($aliases as $alias) { + $this->commands[$alias] = $command; + } + } } } } From 3952491ce9f622d18cd00e34f4fe33ae288ba960 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 27 Oct 2024 12:24:46 +0000 Subject: [PATCH 2/3] updated changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8af149c6bd..88d1ea8bff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.48 +## mm/dd/2024 + +1. [](#new) + * New Trait for fetchPriority attribute on images [#3850](https://github.com/getgrav/grav/pull/3850) +1. [](#improved) + * Fix for #3164. Adds aliases as possible commands during lookup [#3863](https://github.com/getgrav/grav/pull/3863) +1. [](#bugfix) + * Fix style conflict with Clockwork and tooltips [#3861](https://github.com/getgrav/grav/pull/3861) + # v1.7.47 ## 10/23/2024 From 2896aea30a041a81e27f4f5f3f025f787a5417cc Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 28 Oct 2024 11:30:04 +0000 Subject: [PATCH 3/3] prepare for release --- CHANGELOG.md | 2 +- system/defines.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88d1ea8bff..447bc48525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # v1.7.48 -## mm/dd/2024 +## 10/28/2024 1. [](#new) * New Trait for fetchPriority attribute on images [#3850](https://github.com/getgrav/grav/pull/3850) diff --git a/system/defines.php b/system/defines.php index c3e1cdd65b..6538348dea 100644 --- a/system/defines.php +++ b/system/defines.php @@ -9,7 +9,7 @@ // Some standard defines define('GRAV', true); -define('GRAV_VERSION', '1.7.47'); +define('GRAV_VERSION', '1.7.48'); define('GRAV_SCHEMA', '1.7.0_2020-11-20_1'); define('GRAV_TESTING', false);