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