1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const inquirer = require("inquirer");
|
4 | async function askForString(phrase, options = {}) {
|
5 | const { response } = await inquirer.prompt([
|
6 | Object.assign({ message: `${phrase}:`, name: 'response' }, options)
|
7 | ]);
|
8 | return response;
|
9 | }
|
10 | exports.askForString = askForString;
|
11 | async function askForPassword(phrase, options = {}) {
|
12 | return askForString(phrase, Object.assign({}, options, { type: 'password' }));
|
13 | }
|
14 | exports.askForPassword = askForPassword;
|