salesforce-alm
Version:
This package contains tools, and APIs, for an improved salesforce.com developer experience.
39 lines (37 loc) • 1.45 kB
JavaScript
;
/*
* 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 Package1VersionCreateCommand = require("./package1VersionCreateCommand");
const DEFAULT_MAX_POLL = 0;
class Package1VersionCreateGetCommand {
constructor() {
this.maxRetries = DEFAULT_MAX_POLL;
this.packageUploadRequestId = null;
this.logger = logger.child('Package1VersionCreateGetCommand');
}
execute(context) {
this.packageUploadRequestId = context.flags.requestid;
this.package1VersionCreateCommand = new Package1VersionCreateCommand();
return this.package1VersionCreateCommand.poll(context, this.packageUploadRequestId, this.maxRetries);
}
/**
* returns a human readable message for a cli output
*
* @returns {string}
*/
getHumanSuccessMessage(result) {
return this.package1VersionCreateCommand.getHumanSuccessMessage(result);
}
}
module.exports = Package1VersionCreateGetCommand;
//# sourceMappingURL=package1VersionCreateGetCommand.js.map