Skip to content

Commit

Permalink
feat(cli): export config type parses
Browse files Browse the repository at this point in the history
  • Loading branch information
Clunt committed May 30, 2018
1 parent 018318f commit 7b607e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/util/config-parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ function getFileConfig(argv) {

return config;
}
exports.file = getFileConfig;

function getEnvConfig(argv) {
const env_name = argv.configEnv || 'FREEPACK';
const env_str = process.env[env_name];

return configEnv.parse(env_str);
}
exports.env = getEnvConfig;

function getCliConfig(argv) {
const configs = [];
Expand All @@ -76,3 +78,4 @@ function getCliConfig(argv) {

return config;
}
exports.cli = getCliConfig;

0 comments on commit 7b607e5

Please sign in to comment.