Inquirer.js
Inquirer.js copied to clipboard
Passing answers with nested properties to prompt() doesn't seem to work
As per the doc about prompt(), passing an "answers" hash should have it skip those questions for which values are set in the hash.
It doesn't seem to work with nested properties (e.g. "foo.bar"). I tested changing the property to "fooBar" and it works, so I presume it's the nesting/path that is not dealt with properly.
Can you provide a code example?
I think this could be one: InquirerPromptAnswersTest
When using a property path for the question instead of a simple property (e.g. 'info.sex' instead of 'sex') the default behavior of skipping the question fails.
pull request #1028