|
6 | 6 | import {Command, Flags} from '@oclif/core'; |
7 | 7 | import {BaseCommand} from './base-command.js'; |
8 | 8 | import {loadConfig, extractMrtFlags} from './config.js'; |
9 | | -import type {LoadConfigOptions, PluginSources} from './config.js'; |
| 9 | +import type {LoadConfigOptions} from './config.js'; |
10 | 10 | import type {ResolvedB2CConfig} from '../config/index.js'; |
11 | 11 | import type {AuthStrategy} from '../auth/types.js'; |
12 | 12 | import {MrtClient} from '../platform/mrt.js'; |
@@ -63,18 +63,12 @@ export abstract class MrtCommand<T extends typeof Command> extends BaseCommand<T |
63 | 63 |
|
64 | 64 | protected override loadConfiguration(): ResolvedB2CConfig { |
65 | 65 | const options: LoadConfigOptions = { |
66 | | - instance: this.flags.instance, |
67 | | - configPath: this.flags.config, |
| 66 | + ...this.getBaseConfigOptions(), |
68 | 67 | cloudOrigin: this.flags['cloud-origin'] as string | undefined, // MobifySource uses this to load ~/.mobify--[hostname] if set |
69 | 68 | credentialsFile: this.flags['credentials-file'] as string | undefined, // Override path to MRT credentials file |
70 | 69 | }; |
71 | 70 |
|
72 | | - const pluginSources: PluginSources = { |
73 | | - before: this.pluginSourcesBefore, |
74 | | - after: this.pluginSourcesAfter, |
75 | | - }; |
76 | | - |
77 | | - return loadConfig(extractMrtFlags(this.flags as Record<string, unknown>), options, pluginSources); |
| 71 | + return loadConfig(extractMrtFlags(this.flags as Record<string, unknown>), options, this.getPluginSources()); |
78 | 72 | } |
79 | 73 |
|
80 | 74 | /** |
|
0 commit comments