From 27968863cb5e10a0d17766f682f385130224c6ab Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 28 Oct 2023 12:47:45 +0200 Subject: [PATCH] Update publish homepage command to use better choice helper --- .../framework/src/Console/Commands/PublishHomepageCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/framework/src/Console/Commands/PublishHomepageCommand.php b/packages/framework/src/Console/Commands/PublishHomepageCommand.php index 9b10552f81e..6c31e0d6593 100644 --- a/packages/framework/src/Console/Commands/PublishHomepageCommand.php +++ b/packages/framework/src/Console/Commands/PublishHomepageCommand.php @@ -11,6 +11,7 @@ use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Collection; +use Hyde\Console\Concerns\BetterChoiceHelper; use function Hyde\unixsum_file; use function array_key_exists; use function file_exists; @@ -23,6 +24,7 @@ class PublishHomepageCommand extends Command { use AsksToRebuildSite; + use BetterChoiceHelper; /** @var string */ protected $signature = 'publish:homepage {homepage? : The name of the page to publish} @@ -82,7 +84,7 @@ protected function parseSelection(): string protected function promptForHomepage(): string { - return $this->choice( + return $this->betterChoice( 'Which homepage do you want to publish?', $this->formatPublishableChoices(), 0