dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Use `exec` with a prompt #256

Open gretro opened 7 years ago

gretro commented 7 years ago

I'm currently using a 3rd party application that uses Vorpal in REPL mode. I'm trying to automate some deployment configuration for use in my project using the exec function in Vorpal. Everything is working until there is a prompt. At that point, my execution hangs and I'm not able to progress until I do some manually steps (which is not what I want).

I looked at the docs, but there are no mentions of any trick to do that. I would like to avoid having to change the already existing code in-depth, but I'll do it if required to use options.

Here is a sample of my code: https://gist.github.com/gretro/b67aa364967c3fa2c82279b7e4236c2e

Is there anything I missed or a trick that can be used to do what I need to do?