1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.loadConfig = void 0;
|
4 | const core_1 = require("@oclif/core");
|
5 | /**
|
6 | * loads CLI plugin/multi config
|
7 | * @param {loadConfig.Options} opts options
|
8 | * @return {Promise<Interfaces.Config>} config
|
9 | */
|
10 | function loadConfig(opts = {}) {
|
11 | return {
|
12 | async run(ctx) {
|
13 | ctx.config = await core_1.Config.load(opts.root || loadConfig.root);
|
14 | return ctx.config;
|
15 | },
|
16 | };
|
17 | }
|
18 | exports.loadConfig = loadConfig;
|
19 | (function (loadConfig) {
|
20 | })(loadConfig = exports.loadConfig || (exports.loadConfig = {}));
|