UNPKG

nativescript

Version:

Command-line interface for building NativeScript projects

19 lines 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlatformCommandParameter = void 0; const yok_1 = require("./common/yok"); class PlatformCommandParameter { constructor($platformValidationService, $projectData) { this.$platformValidationService = $platformValidationService; this.$projectData = $projectData; this.mandatory = true; } async validate(value) { this.$projectData.initializeProjectData(); this.$platformValidationService.validatePlatform(value, this.$projectData); return true; } } exports.PlatformCommandParameter = PlatformCommandParameter; yok_1.injector.register("platformCommandParameter", PlatformCommandParameter); //# sourceMappingURL=platform-command-param.js.map