Skip to content
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

Want to use nesh for interactive shell program #20

Open
gerrychristiansen opened this issue Jul 17, 2014 · 1 comment
Open

Want to use nesh for interactive shell program #20

gerrychristiansen opened this issue Jul 17, 2014 · 1 comment
Labels

Comments

@gerrychristiansen
Copy link

I would like to use nesh, embedded as core to an interactive shell app. Similar to node, but instead of evaluating javascript commands, the input commands would be custom commands that would invoke some operation.

for example:

./myprog

run sql 'select avg(x) from table1'
33

Could you provide skeleton prototype or point me in the right direction. Thanks.

@ccheever
Copy link
Contributor

nesh probably won't help you too much with this. It's mostly a wrapper/enhancer of the built-in REPL that node comes with. The place I would start looking is the readline module.

This seems to have some examples:
https://gist.github.com/DTrejo/901104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants