dthree / dthree/vorpal

Prompt validation does not visualize the output (errors)

Open
#69 7 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
5.6k
Forks
278
PR merge metrics
No merged PRs in 30d

Description

using inquirer a prompt with validate function should show the validate output, but with vorpal it is somehow omitted.

``` js
this.prompt([
{
type: 'input',
name: 'test',
message: 'Please type something different than `test` to see an error pop up... or type `test` to continue',
validate: function (val) {
if (val != 'test') {
return "Please answer with the word test";
}
return true;
}
}
], function(answers) {
console.log(answers);
});
```

in Inquirer you can see this work perfectly in the `examples/input.js` example. however the error gets lost somewhere in the process within vorpal I assume.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.