diff --git a/src/commands/config/list.ts b/src/commands/config/list.ts index d9647873..0eeb0dcd 100644 --- a/src/commands/config/list.ts +++ b/src/commands/config/list.ts @@ -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'; @@ -20,7 +20,6 @@ export default class List extends ConfigCommand { public static flags = { loglevel }; public async run(): Promise { - await SfdxConfigAggregator.create({}); const aggregator = await ConfigAggregator.create(); aggregator.getConfigInfo().forEach((c) => { diff --git a/src/commands/config/set.ts b/src/commands/config/set.ts index 1f017897..9427aea0 100644 --- a/src/commands/config/set.ts +++ b/src/commands/config/set.ts @@ -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); @@ -107,7 +107,6 @@ export class Set extends ConfigCommand { const loadConfig = async (global: boolean): Promise => { try { - await SfdxConfigAggregator.create({}); const config = await Config.create(Config.getDefaultOptions(global)); await config.read(); return config; diff --git a/src/commands/config/unset.ts b/src/commands/config/unset.ts index c2425b2e..cea10b2d 100644 --- a/src/commands/config/unset.ts +++ b/src/commands/config/unset.ts @@ -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'; @@ -32,7 +32,6 @@ export class UnSet extends ConfigCommand { public async run(): Promise { const { argv, flags } = await this.parse(UnSet); - await SfdxConfigAggregator.create({}); if (!argv || argv.length === 0) { throw messages.createError('error.NoConfigKeysFound');