sfdx-ftw
Version:
sfdx For(ce) The Win!
19 lines • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BaseConfig_1 = require("../../../util/BaseConfig");
class ConfigSet extends BaseConfig_1.BaseConfig {
async run() {
// accept only the first vararg passed in
const theArg = Object.entries(this.varargs)[0];
const theKey = theArg[0].toString();
const theVal = theArg[1].toString();
const result = await this.setCheckConfig(theKey, theVal);
if (result)
return `${theVal} successfully set for config key ${theKey}`;
}
}
exports.default = ConfigSet;
ConfigSet.varargs = {
required: true
};
//# sourceMappingURL=set.js.map