Skip to content

Commit

Permalink
Use Laravel\Prompts\select
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 14, 2023
1 parent a487d5e commit 1229040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/DevToolCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile;
use Symfony\Component\Console\Attribute\AsCommand;

use function Laravel\Prompts\select;

#[AsCommand(name: 'workbench:devtool', description: 'Configure Workbench for package development')]
class DevToolCommand extends Command
{
Expand Down Expand Up @@ -86,7 +88,7 @@ protected function copyTestbenchDotEnvFile(Filesystem $filesystem, string $worki
return;
}

$choice = $this->components->choice(
$choice = select(
"Export '.env' file as?",
$choices,
);
Expand Down

0 comments on commit 1229040

Please sign in to comment.