UNPKG

simform-pocket-cli

Version:
44 lines 1.44 kB
#!/usr/bin/env node "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const yargs_1 = __importDefault(require("yargs")); const helpers_1 = require("yargs/helpers"); const deployTheApp_1 = __importDefault(require("./deployTheApp")); /** * CLI entry point */ (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv)) .command('distribute', 'Deploy a build to the web app', { applicationId: { type: 'string', demandOption: true, describe: 'The unique Application Id of the application.' }, buildPath: { type: 'string', demandOption: true, describe: 'Path to the APK or IPA build file.' }, appToken: { type: 'string', demandOption: true, describe: 'The unique Application token of the application.' }, baseUrl: { type: 'string', demandOption: false, describe: 'The base URL of the server.' }, releaseNotes: { type: 'string', demandOption: false, describe: 'Enter your Release Notes for this version.' } }, async (argv) => { await (0, deployTheApp_1.default)(argv.applicationId, argv.buildPath, argv.appToken, argv.baseUrl, argv.releaseNotes); }) .help().argv; //# sourceMappingURL=distribute.js.map