From 155f64d05573dbc9f7dffc1af3f80242d4564b3f Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:22:44 +0000 Subject: [PATCH 1/6] Update CacheCommand.php --- src/Console/CacheCommand.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Console/CacheCommand.php b/src/Console/CacheCommand.php index 608b185..b00c128 100644 --- a/src/Console/CacheCommand.php +++ b/src/Console/CacheCommand.php @@ -8,6 +8,7 @@ use BladeUI\Icons\IconsManifest; use Illuminate\Console\Command; +#[AsCommand(name: 'icons:cache')] final class CacheCommand extends Command { /** @@ -24,12 +25,15 @@ final class CacheCommand extends Command */ protected $description = 'Discover icon sets and generate a manifest file'; - public function handle(Factory $factory, IconsManifest $manifest): int + /** + * Execute the console command. + * + * @return mixed + */ + public function handle(Factory $factory, IconsManifest $manifest) { $manifest->write($factory->all()); - $this->info('Blade icons manifest file generated successfully!'); - - return 0; + $this->component->info('Blade icons cached successfully.'); } } From e49ee736e8821ccbd204c0fa25f046ec9c610d0a Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:23:28 +0000 Subject: [PATCH 2/6] Update CacheCommand.php --- src/Console/CacheCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/CacheCommand.php b/src/Console/CacheCommand.php index b00c128..beafc6d 100644 --- a/src/Console/CacheCommand.php +++ b/src/Console/CacheCommand.php @@ -7,6 +7,7 @@ use BladeUI\Icons\Factory; use BladeUI\Icons\IconsManifest; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; #[AsCommand(name: 'icons:cache')] final class CacheCommand extends Command From 76f07d91d90c712fb03186f80b9d6eb4b16183aa Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:24:46 +0000 Subject: [PATCH 3/6] Update ClearCommand.php --- src/Console/ClearCommand.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 6cc0707..1b1003e 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -6,7 +6,9 @@ use BladeUI\Icons\IconsManifest; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'icons:clear')] final class ClearCommand extends Command { /** @@ -23,11 +25,12 @@ final class ClearCommand extends Command */ protected $description = 'Remove the blade icons manifest file'; + public function handle(IconsManifest $manifest): int { $manifest->delete(); - - $this->info('Blade icons manifest file cleared!'); + + $this->components->info('Cached blade icons cleared successfully.'); return 0; } From 5dfd639a0e76ac05f28f5d3080e64496a3fc93cd Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:25:07 +0000 Subject: [PATCH 4/6] Update CacheCommand.php --- src/Console/CacheCommand.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Console/CacheCommand.php b/src/Console/CacheCommand.php index beafc6d..6ea3897 100644 --- a/src/Console/CacheCommand.php +++ b/src/Console/CacheCommand.php @@ -26,15 +26,12 @@ final class CacheCommand extends Command */ protected $description = 'Discover icon sets and generate a manifest file'; - /** - * Execute the console command. - * - * @return mixed - */ - public function handle(Factory $factory, IconsManifest $manifest) + public function handle(Factory $factory, IconsManifest $manifest): int { $manifest->write($factory->all()); $this->component->info('Blade icons cached successfully.'); + + return 0; } } From 3ded31d52d7695f39e4418ba42f8393d8c3fea8c Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:31:49 +0000 Subject: [PATCH 5/6] Update CacheCommand.php --- src/Console/CacheCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/CacheCommand.php b/src/Console/CacheCommand.php index 6ea3897..54a49a5 100644 --- a/src/Console/CacheCommand.php +++ b/src/Console/CacheCommand.php @@ -30,7 +30,7 @@ public function handle(Factory $factory, IconsManifest $manifest): int { $manifest->write($factory->all()); - $this->component->info('Blade icons cached successfully.'); + $this->components->info('Blade icons cached successfully.'); return 0; } From fc40e528b85f2524db1c63d0e19d302f919752af Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 21:36:28 +0000 Subject: [PATCH 6/6] Update ClearCommand.php --- src/Console/ClearCommand.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 1b1003e..07d62a5 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -25,7 +25,6 @@ final class ClearCommand extends Command */ protected $description = 'Remove the blade icons manifest file'; - public function handle(IconsManifest $manifest): int { $manifest->delete();