UNPKG

@roeeyn/challenge-generator

Version:

Fetches a code challenge from the backend, and creates the necessary files to run locally.

17 lines (16 loc) 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.confirmParamsQuestion = void 0; const tslib_1 = require("tslib"); const inquirer_1 = tslib_1.__importDefault(require("inquirer")); const confirmParamsQuestion = async (cliOptions) => { return inquirer_1.default.prompt([ { name: "isConfirmed", type: "confirm", default: false, message: `Selected params:\n${JSON.stringify(cliOptions, null, 2)}\nUse this for filtering?`, }, ]); }; exports.confirmParamsQuestion = confirmParamsQuestion;