-
Notifications
You must be signed in to change notification settings - Fork 130
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
[2.x] Forward input options to psysh #98
Conversation
Heh, our tests shouldn't have passed. I guess we are not actually testing the tinker command. ;) |
It's not hanging forever. It's just running as
Apparently your Adding explicit handling for |
Confirmed that the psysh change fixed running with |
Oh, lol. Our verbose is just whatever symfony does as the default for commands. |
Is there a way for psysh to match up with those, or is it intentionally not defined like that? |
PsySH does match up (with how |
Oh cool. Symfony used the wrong definition for how they actually implemented the handling: |
Here we go. When the levels for But the same day, it was changed to … so the input definition has been broken the entire time, and the only reason it mostly works is Symfony doesn't actually use the input definition to parse the input for Given this, I think the answer is to stop trying to use |
All better! bobthecow/psysh@4884edf |
@bobthecow Thanks for this. The no-interaction flag doesn't seem to work, however: |
It looks like it does get set to disabled, but the configuration later doesn't get respected? |
Why would you use |
Well, all laravel's commands should respect the no interaction flag. In the case of the tinker command, instead of reading from the input "live", we'd just one-time read whatever was piped into from stdin, and execute it. |
I'd say this PR is ready for merge now. Handling of no-interaction is to be handled outside of the tinker package. We already forward the config properly. |
Surely psysh should either exit straight away with code 0 in that case, or it should throw an exception saying nothing to do? |
Isn't the whole point of no-interaction is that the process will never wait for input? |
…vided Previously we'd hang out trying to get input from readline, which is very much not what you'd expect if you explicitly asked for `--no-interaction` :) See laravel/tinker#98
…vided Previously we'd hang out trying to get input from readline, which is very much not what you'd expect if you explicitly asked for `--no-interaction` :) See laravel/tinker#98
This PR forwards things like
--no-ansi
and-vv
to psysh in the proper way, instead of ignoring them. Once this PR is merged, we can tag tinker v2.4.0.// cc @bobthecow