Coder Social home page Coder Social logo

Add support for repl about dsq HOT 9 CLOSED

multiprocessio avatar multiprocessio commented on May 19, 2024
Add support for repl

from dsq.

Comments (9)

Ghibranalj avatar Ghibranalj commented on May 19, 2024

How would you like the behaviour to be?. like how to exit and stuff.

from dsq.

eatonphil avatar eatonphil commented on May 19, 2024

Control-D to exit for now.

And have dsq > be the prompt for each line

from dsq.

eatonphil avatar eatonphil commented on May 19, 2024

When you're in interactive mode the pretty flag should probably also be turned on automatically

from dsq.

Ghibranalj avatar Ghibranalj commented on May 19, 2024

How should the test be written?

from dsq.

eatonphil avatar eatonphil commented on May 19, 2024

Hmm I'm OK with there not being tests for just the interactive part for now.

from dsq.

eatonphil avatar eatonphil commented on May 19, 2024

Oh yeah I realize now you can't just wrap lines 469-503 in a loop. But you can pull them out into a runQuery helper and then call that helper within a repl loop if interactive mode is on

from dsq.

Ghibranalj avatar Ghibranalj commented on May 19, 2024

Okay on it

from dsq.

Ghibranalj avatar Ghibranalj commented on May 19, 2024

Are you comfortable with adding a dependency for reading the input.

I was able to implement basic REPL by using the built in bufio package but this doesnt support moving the cursor around with the arrow keys.

from dsq.

eatonphil avatar eatonphil commented on May 19, 2024

Yup, I mentioned a suggested dependency in the original message for this issue

from dsq.

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.