Open gerrychristiansen opened 10 years ago
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
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
Could you provide skeleton prototype or point me in the right direction. Thanks.