UNPKG

salesforce-alm

Version:

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

39 lines (37 loc) 1.44 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 */ /** * Contains config details and operations meant for package subscriber orgs. * This could potentially include test orgs used by CI process for testing packages, * and target subscriber orgs. **/ const logger = require("../core/logApi"); const PackageUninstallCommand = require("./packageUninstallCommand"); const DEFAULT_MAX_POLL = 0; class PackageUninstallRequestGetCommand { constructor() { this.maxRetries = DEFAULT_MAX_POLL; this.packageUninstallRequestId = null; this.logger = logger.child('PackageUninstallRequestGetCommand'); } execute(context) { this.packageUninstallRequestId = context.flags.requestid; this.packageUninstallCommand = new PackageUninstallCommand(context); return this.packageUninstallCommand.poll(context, this.packageUninstallRequestId, this.maxRetries); } /** * returns a human readable message for a cli output * * @returns {string} */ getHumanSuccessMessage(result) { return this.packageUninstallCommand.getHumanSuccessMessage(result); } } module.exports = PackageUninstallRequestGetCommand; //# sourceMappingURL=PackageUninstallRequestGetCommand.js.map