UNPKG

@nswhp/golden-path

Version:
24 lines (23 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.licenseQuestion = void 0; const tslib_1 = require("tslib"); const inquirer_1 = (0, tslib_1.__importDefault)(require("inquirer")); const choice_1 = require("../models/choice"); async function licenseQuestion() { const listOfLicenses = [ { name: 'MIT License', value: choice_1.LicenseValue.MIT }, { name: 'ISC License', value: choice_1.LicenseValue.ISC }, { name: 'Apache 2.0 License', value: choice_1.LicenseValue.APACHE }, { name: 'BSD 2-Clause License', value: choice_1.LicenseValue.BSD2 }, { name: 'GPLv3 License', value: choice_1.LicenseValue.GPL3 }, { name: 'CC0 1.0 License', value: choice_1.LicenseValue.CCO1 }, ]; return inquirer_1.default.prompt([{ name: 'licenses', type: 'list', message: 'Which type of license do you want to generate?', choices: listOfLicenses, }]); } exports.licenseQuestion = licenseQuestion;