UNPKG

587 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.generateSelect = exports.generateInput = void 0;
4const generateInput = (name, message) => {
5 return (defaultAnswer) => ({
6 type: 'input',
7 name,
8 message,
9 default: defaultAnswer,
10 });
11};
12exports.generateInput = generateInput;
13const generateSelect = (name) => {
14 return (message) => {
15 return (choices) => ({
16 type: 'list',
17 name,
18 message,
19 choices,
20 });
21 };
22};
23exports.generateSelect = generateSelect;