A collection of common interactive command line user interfaces.
MIT License
Bot releases are hidden (Show)
Thanks to @sindresorhus, we have a set of new glyph and a refreshed style.
inquirer.registerPrompt()
allow to register custom prompts (plugins!) or overwriting defaults prompts (mocking!)inquirer.restoreDefaultPrompts()
to restore the defaults promptscheckbox
prompt failed when used with an asynchronous validate
method.Mainly an internal API update. We now use RxJS internally and provide a few public API surfacing this internal switch.
Observable
in lieu of a question array. This allow you to programmatically (and progressively) fill up Inquirer question queue.inquirer.prompts(prompts).process.subscribe()
you can be notified each time a question is answered.filter
functions can now be async.filter
function on an input
prompt is not re-runned on the previously filtered value.--color
and --no-color
command line flags.Published by SBoudrias over 10 years ago
Published by SBoudrias almost 11 years ago
list
prompt now accept a String representing the value of the selected choice.checkbox
prompt now accept an Array as default value reprensenting the checked choices values.BottomBar
UI allowing to log content into a stream while keeping a bottom bar updated with status information.Separator
are handled because of Node.js "no smart" module caching. Now Separators are objects with type=separator
property. (The inquirer.Separator
constructor is still the recommend use, just prefer not checking instanceof
for detection)Published by SBoudrias about 11 years ago
Separator
inside a choice list which is basically an un-selectable free edit line. (#53)list
and checkbox
prompts. That's a pro feature, no interface notifications is done. (#38)Full changes available on #55.
Published by SBoudrias over 11 years ago
Initial release YAY!!! Enjoy :)
Fix bug with inception issue (when two modules used Inquirer on the same process). Relevant issue: https://github.com/yeoman/yo/issues/51