UNPKG

salesforce-alm

Version:

This package contains tools, and APIs, for an improved salesforce.com developer experience.

55 lines (53 loc) 2.79 kB
"use strict"; /* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ Object.defineProperty(exports, "__esModule", { value: true }); exports.OrgSnapshotCreateCommand = void 0; // This is the legacy converted command file. Ignoring code-coverage since this is generated. // THIS SHOULD BE REMOVED WHEN CONVERTED TO EXTEND SfdxCommand /* istanbul ignore file */ const command_1 = require("@salesforce/command"); const Messages = require("../../../../lib/messages"); const ToolbeltCommand_1 = require("../../../../ToolbeltCommand"); const messages = Messages(); const consts = require("../../../../lib/core/constants"); class OrgSnapshotCreateCommand extends ToolbeltCommand_1.ToolbeltCommand { async run() { const context = await this.resolveLegacyContext(); const OrgSnapshotCreateCommandImpl = require('../../../../lib/org/snapshot/orgSnapshotCreateCommand'); // eslint-disable-line global-require return this.execLegacyCommand(new OrgSnapshotCreateCommandImpl(), context); } } exports.OrgSnapshotCreateCommand = OrgSnapshotCreateCommand; OrgSnapshotCreateCommand.theDescription = messages.getMessage('createSnapshotCmdDescription', [], 'orgSnapshot'); OrgSnapshotCreateCommand.longDescription = messages.getMessage('createSnapshotCmdDescriptionLong', [], 'orgSnapshot'); OrgSnapshotCreateCommand.help = messages.getMessage('createSnapshotCmdHelp', [], 'orgSnapshot'); OrgSnapshotCreateCommand.showProgress = true; OrgSnapshotCreateCommand.requiresProject = false; OrgSnapshotCreateCommand.requiresDevhubUsername = true; OrgSnapshotCreateCommand.orgType = consts.DEFAULT_DEV_HUB_USERNAME; OrgSnapshotCreateCommand.flagsConfig = { sourceorg: command_1.flags.string({ char: 'o', description: messages.getMessage('createSnapshotCmdSourceOrgDescription', [], 'orgSnapshot'), longDescription: messages.getMessage('createSnapshotCmdSourceOrgDescriptionLong', [], 'orgSnapshot'), required: true, }), snapshotname: command_1.flags.string({ char: 'n', description: messages.getMessage('createSnapshotCmdNameDescription', [], 'orgSnapshot'), longDescription: messages.getMessage('createSnapshotCmdNameDescriptionLong', [], 'orgSnapshot'), required: true, }), description: command_1.flags.string({ char: 'd', description: messages.getMessage('createSnapshotCmdDescriptionDescription', [], 'orgSnapshot'), longDescription: messages.getMessage('createSnapshotCmdDescriptionDescriptionLong', [], 'orgSnapshot'), required: false, }), }; //# sourceMappingURL=create.js.map