Skip to content

Commit

Permalink
Auto-select default value as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Nov 24, 2024
1 parent 92139cf commit 7871611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/StarterKits/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ protected function instantiateSelectModule(array $config, string $key): Installa
$choice = select(
label: Arr::get($config, 'prompt', "Would you like to install one of the following [{$name}] modules?"),
options: $options,
default: Arr::get($config, 'default'),
);
} elseif (! $this->isInteractive && ! $choice = Arr::get($config, 'default')) {
return false;
Expand Down

0 comments on commit 7871611

Please sign in to comment.