UNPKG

st-enable

Version:

Enables SpringType features in existing projects.

14 lines 769 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var supportedFeaturesList_1 = require("../definition/supportedFeaturesList"); var chalk = require('chalk'); exports.validateFeatureName = function (featureName) { if (supportedFeaturesList_1.supportedFeaturesList.indexOf(featureName) === -1) { console.error(chalk.red("The feature " + chalk.green(featureName) + " does not exist.\n" + "The following features are supported:\n\n") + chalk.cyan(supportedFeaturesList_1.supportedFeaturesList.map(function (depName) { return " " + depName; }).join('\n')) + chalk.red('\n\nPlease choose a feature from that list.')); process.exit(1); } }; //# sourceMappingURL=validateFeatureName.js.map