Add config getter
This commit is contained in:
@@ -100,6 +100,11 @@ function init(configPath, options, cb) {
|
|||||||
],
|
],
|
||||||
function complete(err, mergedConfig) {
|
function complete(err, mergedConfig) {
|
||||||
exports.config = mergedConfig;
|
exports.config = mergedConfig;
|
||||||
|
|
||||||
|
exports.config.get = function(path) {
|
||||||
|
return _.get(exports.config, path);
|
||||||
|
};
|
||||||
|
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user