Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ var inquirer = require('inquirer');

var prompt = module.exports = {};

inquirer.registerPrompt('search-list', require('inquirer-search-list'));

/**
* Confirm an action with a yes/no prompt. This accepts a default value, but
* defaults to true (yes) if no default is provided.
Expand Down Expand Up @@ -115,7 +117,7 @@ prompt.input = function(message, def, callback) {
*/
prompt.configuration = function(configs, callback) {
inquirer.prompt({
type: 'list',
type: 'search-list',
name: 'config',
message: 'Saved configurations',
choices: [].concat(configs, ['New configuration'])
Expand Down
2 changes: 1 addition & 1 deletion lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ template.questions = function(templateBody, overrides) {

question.type = (function() {
if (parameter.NoEcho) return 'password';
if (parameter.AllowedValues) return 'list';
if (parameter.AllowedValues) return 'search-list';
return 'input';
})();

Expand Down
Loading