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