Skip to content

Commit

Permalink
Switch to standard console prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Mar 24, 2024
1 parent ba7cdd8 commit f06cc2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/Commands/Concerns/ResolvesDomainFromInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Lunarstorm\LaravelDDD\Support\Path;
use Symfony\Component\Console\Input\InputOption;

use function Laravel\Prompts\text;

trait ResolvesDomainFromInput
{
protected ?Domain $domain = null;
Expand Down Expand Up @@ -83,10 +81,7 @@ public function handle()

// If the domain is not set, prompt for it
if (! $this->domain) {
$this->domain = new Domain(text(
label: 'What is the domain?',
required: true,
));
$this->domain = new Domain($this->ask('What is the domain?'));
}

parent::handle();
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/Enums/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum Feature: string
{
case PromptForMissingInput = '9.49.0';
case IncludeFilepathInGeneratorCommandOutput = '9.32.0';
case LaravelPromptsPackage = '10.17';

public function exists(): bool
{
Expand Down

0 comments on commit f06cc2e

Please sign in to comment.