UNPKG

@nx-dotnet/core

Version:

- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup). - .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https

25 lines 977 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.promptForTemplate = promptForTemplate; const inquirer_1 = require("inquirer"); function promptForTemplate(client, search, language) { const available = client.listInstalledTemplates({ search, language }); if (search) { const exactMatch = available.find((x) => x.shortNames.includes(search)); if (exactMatch) { return exactMatch.shortNames[0]; } } return (0, inquirer_1.prompt)([ { name: 'template', type: 'list', message: 'What template should the project be initialized with? (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new#template-options) ', choices: available.map((a) => ({ value: a.shortNames[0], message: a.templateName, })), }, ]).then((a) => a.template); } //# sourceMappingURL=prompt-for-template.js.map