Skip to content

Commit ef777bc

Browse files
committed
chore: use non-deprecated core stuff
1 parent 2655a45 commit ef777bc

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/commands/org/display.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
loglevel,
1313
orgApiVersionFlagWithDeprecations,
1414
} from '@salesforce/sf-plugins-core';
15-
import { AuthInfo, Messages, Org, sfdc, SfError, trimTo15 } from '@salesforce/core';
15+
import { AuthInfo, Messages, Org, SfError, trimTo15 } from '@salesforce/core';
1616
import { camelCaseToTitleCase } from '@salesforce/kit';
1717
import { AuthFieldsFromFS, OrgDisplayReturn, ScratchOrgFields } from '../../shared/orgTypes';
1818
import { getAliasByUsername } from '../../shared/utils';
@@ -120,10 +120,8 @@ export class OrgDisplayCommand extends SfCommand<OrgDisplayReturn> {
120120
signupUsername: result.SignupUsername,
121121
};
122122
}
123-
throw new SfError(
124-
messages.getMessage('noScratchOrgInfoError', [sfdc.trimTo15(orgId), hubUsername]),
125-
'NoScratchInfo',
126-
[messages.getMessage('noScratchOrgInfoAction')]
127-
);
123+
throw new SfError(messages.getMessage('noScratchOrgInfoError', [trimTo15(orgId), hubUsername]), 'NoScratchInfo', [
124+
messages.getMessage('noScratchOrgInfoAction'),
125+
]);
128126
}
129127
}

src/shared/orgListUtil.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import * as fs from 'fs/promises';
1111
import {
1212
Org,
1313
AuthInfo,
14-
SfdxConfigAggregator,
1514
Global,
1615
Logger,
1716
SfError,
@@ -183,7 +182,7 @@ export class OrgListUtil {
183182
* @private
184183
*/
185184
public static async groupOrgs(authInfos: AuthInfo[]): Promise<OrgGroups> {
186-
const configAggregator = await SfdxConfigAggregator.create();
185+
const configAggregator = await ConfigAggregator.create();
187186

188187
const results = await Promise.all(
189188
authInfos.map(async (authInfo): Promise<ExtendedAuthFields | ExtendedAuthFieldsScratch> => {

0 commit comments

Comments
 (0)