Giter VIP home page Giter VIP logo

Comments (9)

bobthecow avatar bobthecow commented on May 28, 2024 1

This is fixed and will be available in the next stable PsySH release. Thanks @aksonnic!

from tinker.

driesvints avatar driesvints commented on May 28, 2024 1

Thanks @bobthecow!

from tinker.

driesvints avatar driesvints commented on May 28, 2024

I've been looking into this but tbh I don't see the point of these options with tinker. -n make no sense as the whole point of tinker is interaction. -q makes a little more sense but then again what's the point of not echo'ing data if you're explicitly asking for it in your tinker commands?

from tinker.

aksonnic avatar aksonnic commented on May 28, 2024

Tinker allows running a script on start, so I was using it in a shell script to run a PHP script that could use the app framework/models/etc, and output some data (JSON in this case). Kept having to remove the header output, and it would hang shell script until I typed exit.

It could have been a Command, and I could have written to a file, sure, but it was a one off. And for shell scripting, piping etc it sure is nice to get bare output.

Also, the help for tinker says it accepts these options.

from tinker.

driesvints avatar driesvints commented on May 28, 2024

Yeah but you could technically just run the script with a php execution, right?

php hello_world.php

It's the same thing, not?

Also, the help for tinker says it accepts these options.

I think this is the actual problem and the options shouldn't be here.

from tinker.

aksonnic avatar aksonnic commented on May 28, 2024

php hello_world.php wouldn’t boot the app and have all the Laravel goodness.

Noooo, don’t remove the options! :) Will you accept a PR?

from tinker.

driesvints avatar driesvints commented on May 28, 2024

php hello_world.php wouldn’t boot the app and have all the Laravel goodness.

Hmm, excellent point. Hadn't considered that.

Noooo, don’t remove the options! :) Will you accept a PR?

Now that I know the above I think so yeah. Feel free! But definitely make sure you thoroughly explain why in the PR comment.

from tinker.

aksonnic avatar aksonnic commented on May 28, 2024

After digging around in the code, it's probably an issue on Psysh as they don't check quiet or interactive flags in their loop. In fact, they purposely reset the verbosity back to normal...

from tinker.

driesvints avatar driesvints commented on May 28, 2024

Hmm well if that's the case then there's nothing we can really do on our end. Atm we aren't planning on differentiating much on how Psysh tackles the basics. Sorry about that.

from tinker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.