Skip to content

Use prompts non-interactive mode instead of Symfony fallbacks #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jessarcher
Copy link
Member

This PR updates the Laravel installer to use Prompts' new "non-interactive mode" instead of relying on the Symfony fallback.

This does not change the behaviour when using the -n argument, as the command will never call the interact hook, which is the only place we currently use Prompts in the installer. It only changes the output when there are missing required arguments and the input is not a TTY (such as in CI).

Before After
image image

This change is pretty insignificant for the installer, but it paves the way for laravel/prompts#57, allowing us to remove the fallback code from this repo and any other packages/projects that can't or don't rely on laravel/framework to configure a Windows fallback.

@jessarcher jessarcher marked this pull request as draft September 22, 2023 03:41
@jessarcher
Copy link
Member Author

This can wait until Prompts 0.1.9 is released.

@jessarcher jessarcher closed this Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant