@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
42 lines • 1.3 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrgUsersConfig = void 0;
const global_1 = require("../global");
const configFile_1 = require("./configFile");
/**
* A config file that stores usernames for an org.
*/
class OrgUsersConfig extends configFile_1.ConfigFile {
/**
* Constructor.
* **Do not directly construct instances of this class -- use {@link OrgUsersConfig.create} instead.**
*
* @param options The options for the class instance
* @ignore
*/
constructor(options) {
super(options);
}
/**
* Gets the config options for a given org ID.
*
* @param orgId The orgId. Generally this org would have multiple users configured.
*/
static getOptions(orgId) {
return {
isGlobal: true,
isState: true,
filename: `${orgId}.json`,
orgId,
stateFolder: global_1.Global.SFDX_STATE_FOLDER,
};
}
}
exports.OrgUsersConfig = OrgUsersConfig;
//# sourceMappingURL=orgUsersConfig.js.map
;