Skip to content

Commit

Permalink
Update publish homepage command to use better choice helper
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent e091f4d commit 2796886
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2796886

Please sign in to comment.