Closed JonathanAspeling closed 6 months ago
Howdy apologies!
I made a reasoning error. Thought it was a cool feature that the validation of the promptForMissingArgumentsUsing bits also got applied/exercised if you pass in arguments programmatically when actually I had a check function in the artisan handle method that was catching the issues when called programmatically!
Really great package - enjoying getting into it! <3
Laravel Prompts Version
v0.1.15
Laravel Version
v10.44.0 ./de
PHP Version
8.2.15
Operating System & Version
Linux Container
Terminal Application
n/a
Description
Good day,
I trust you are doing well!
In short:
I have an artisan command that accepts arguments for when it needs to be called programmatically.
One of the arguments/inputs is of type text. I noted when I supplied the text argument programmatically that prompts validated it and blocked the artisan command from running which is great! It used my custom call back.
I thought this was default behaviour - so later when I added a select prompt I expected it do do the same but noted that it does not and think this might be a bug?
I checked the docs and you can add validation to the select method.
Hoping I spotted something!
Steps To Reproduce
use function Laravel\Prompts\text; use function Laravel\Prompts\select;