Questions tagged [vorpal]
3 questions
1
vote
2 answers
Close Vorpal instance programmatically
This regards the vorpal CLI for node.js, like so:
const vorpal = require('vorpal')();
The user can close vorpal with Ctrl-C, but how can I close vorpal programmatically?
For example, if a vorpal terminal session is opened, but no further stdin is…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
1 answer
Vorpal Vantage: i'm not able to exit the interactive console programmatically
What's wrong with this?
const Vantage = require('vantage')
const v = Vantage()
.delimiter('$test')
.listen(9000)
.show()
const close = () => {
v.exec('exit', () => {
console.log('DONE')
})
}
setTimeout(close,…

Giggioz
- 457
- 7
- 21
0
votes
0 answers
Node.js Vorpal CLI - include subcommands as one command
Say we have this:
vorpal.command('find [sumanOptions] [folder]')
.description('find test files to run')
.action(function (args: Array, cb: Function) {
// args => {sumanOptions: 'a b c'}
});
how can I pass a string of commands…

Alexander Mills
- 90,741
- 139
- 482
- 817