Giter VIP home page Giter VIP logo

Comments (6)

karuppiah7890 avatar karuppiah7890 commented on May 30, 2024

What should be the output (to file or stdout) ? The questions and the answers together ? Or just the answers ? And in case of questions - the complete message of the question or just the name of the question which is used to identify the question and get the answer currently

from survey.

ahmetb avatar ahmetb commented on May 30, 2024

so answers are already in STDIN, they don't need to be in any of the output streams.

however, the questions, animations etc, they can go to STDERR (hopefully we're not expecting people to save ansi escape sequences we use to do animations to files).

this way I can easily write a program that only prints to STDOUT from my code and not from the survey package.

from survey.

ahmetb avatar ahmetb commented on May 30, 2024

I still need this feature and may take a look at it. Or would you like to tackle it yourself @AlecAivazis ? It looks like all the changes required would be in this repo.

from survey.

AlecAivazis avatar AlecAivazis commented on May 30, 2024

hey @ahmetb! Sorry for not responding - if you want to submit a PR with some test cases I would love to review it. I agree that sending only the results to stdout is probably the way to go. sending the animation stuff to stderr feels a bit weird but I'm not sure what else to do... maybe just leave it up to the user and provide a field that they can explicitly connect to stderr if they want?

Looking forward to seeing it implemented!

from survey.

AlecAivazis avatar AlecAivazis commented on May 30, 2024

Hey @ahmetb - sorry for pinging you out of nowhere, I just wanted to put on your radar that PR #143 is going to be merging soon which should hopefully address your needs.

from survey.

AlecAivazis avatar AlecAivazis commented on May 30, 2024

I'm going to close this since #143 has been merged. If it doesn't address your exact needs @ahmetb, feel free to open another issue

from survey.

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.