Interactive mode for prqlc #3349
Replies: 3 comments 7 replies
-
Wouldn't it be better to create another tool rather than making prqlc bigger? |
Beta Was this translation helpful? Give feedback.
-
I think this is a great idea, and I was thinking of doing something like this at one point — maybe more like a TUI with two panes, like the playground. There could be shortcut keys for copying to clipboard, for viewing intermediate compiler outputs, etc. The main reason not to do it is that we already have the playground & VS Code. But the playground takes ~30s to start on local code each time. And VS Code works best when saving a |
Beta Was this translation helpful? Give feedback.
-
So to some extent ❯ prqlc compile | duckdb
Enter PRQL, then press ctrl-d to compile:
from [{greet="hello @vanillajonathon"}]
┌────────────────────────┐
│ greet │
│ varchar │
├────────────────────────┤
│ hello @vanillajonathon │
└────────────────────────┘ However you don't get much interactivity beyond what's offered by your shell. IIRC there are readline wrappers that might give you basic functionality with 5 minutes of work. Something like https://github.com/hanslub42/rlwrap. Otherwise using some of the https://charm.sh/ tools? |
Beta Was this translation helpful? Give feedback.
-
prqlc
could have a interactive mode though an-i
or--interactive
option.Example:
Beta Was this translation helpful? Give feedback.
All reactions