1 | ;
|
2 | /*
|
3 | * Copyright (c) 2020, salesforce.com, inc.
|
4 | * All rights reserved.
|
5 | * Licensed under the BSD 3-Clause license.
|
6 | * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
7 | */
|
8 | Object.defineProperty(exports, "__esModule", { value: true });
|
9 | exports.OrgUsersConfig = void 0;
|
10 | const global_1 = require("../global");
|
11 | const configFile_1 = require("./configFile");
|
12 | /**
|
13 | * A config file that stores usernames for an org.
|
14 | */
|
15 | class OrgUsersConfig extends configFile_1.ConfigFile {
|
16 | /**
|
17 | * Constructor.
|
18 | * **Do not directly construct instances of this class -- use {@link OrgUsersConfig.create} instead.**
|
19 | *
|
20 | * @param options The options for the class instance
|
21 | * @ignore
|
22 | */
|
23 | constructor(options) {
|
24 | super(options);
|
25 | }
|
26 | /**
|
27 | * Gets the config options for a given org ID.
|
28 | *
|
29 | * @param orgId The orgId. Generally this org would have multiple users configured.
|
30 | */
|
31 | static getOptions(orgId) {
|
32 | return {
|
33 | isGlobal: true,
|
34 | isState: true,
|
35 | filename: `${orgId}.json`,
|
36 | orgId,
|
37 | stateFolder: global_1.Global.SFDX_STATE_FOLDER,
|
38 | };
|
39 | }
|
40 | }
|
41 | exports.OrgUsersConfig = OrgUsersConfig;
|
42 | //# sourceMappingURL=orgUsersConfig.js.map |
\ | No newline at end of file |