Skip to content

Commit

Permalink
feat: remove sfdx configAgg
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Apr 21, 2023
1 parent 5f255c1 commit 1c4dbf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/commands/config/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 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
*/
import { ConfigAggregator, Messages, SfdxConfigAggregator } from '@salesforce/core';
import { ConfigAggregator, Messages } from '@salesforce/core';
import { loglevel } from '@salesforce/sf-plugins-core';
import { ConfigCommand, ConfigResponses } from '../../config';

Expand All @@ -20,7 +20,6 @@ export default class List extends ConfigCommand<ConfigResponses> {
public static flags = { loglevel };

public async run(): Promise<ConfigResponses> {
await SfdxConfigAggregator.create({});
const aggregator = await ConfigAggregator.create();

aggregator.getConfigInfo().forEach((c) => {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/config/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { parseVarArgs, Flags, loglevel } from '@salesforce/sf-plugins-core';
import { Config, Messages, Org, SfError, OrgConfigProperties, SfdxConfigAggregator } from '@salesforce/core';
import { Config, Messages, Org, SfError, OrgConfigProperties } from '@salesforce/core';
import { CONFIG_HELP_SECTION, ConfigCommand, Msg } from '../../config';

Messages.importMessagesDirectory(__dirname);
Expand Down Expand Up @@ -107,7 +107,6 @@ export class Set extends ConfigCommand<SetConfigCommandResult> {

const loadConfig = async (global: boolean): Promise<Config> => {
try {
await SfdxConfigAggregator.create({});
const config = await Config.create(Config.getDefaultOptions(global));
await config.read();
return config;
Expand Down
3 changes: 1 addition & 2 deletions src/commands/config/unset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { Flags, loglevel } from '@salesforce/sf-plugins-core';
import { Config, Messages, SfdxConfigAggregator, SfError } from '@salesforce/core';
import { Config, Messages, SfError } from '@salesforce/core';
import { CONFIG_HELP_SECTION, ConfigCommand } from '../../config';
import { SetConfigCommandResult } from './set';

Expand All @@ -32,7 +32,6 @@ export class UnSet extends ConfigCommand<SetConfigCommandResult> {

public async run(): Promise<SetConfigCommandResult> {
const { argv, flags } = await this.parse(UnSet);
await SfdxConfigAggregator.create({});

if (!argv || argv.length === 0) {
throw messages.createError('error.NoConfigKeysFound');
Expand Down

0 comments on commit 1c4dbf9

Please sign in to comment.