dthree / vorpal

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

fix(prompt): Fixes the prompt not displaying the default value. #153

Closed zakhenry closed 8 years ago

zakhenry commented 8 years ago

This fixes the inquirer default values not being displayed.

Note that I could not use inquirer.prompt.prompts.input.prototype.getQuestion.call() directly as inquirer prefixes the delimiter with ?, which is not desired for vorpal as it controls it's own delimiter.

Instead the functionality defined in https://github.com/SBoudrias/Inquirer.js/blob/20c3c5d8a91df5022a9a31aa739f3dd6c92a22e7/lib/prompts/base.js#L122 is replicated

Fixes #125

dthree commented 8 years ago

Thanks! :+1: