dotenvi
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -14,2 +14,7 @@ #! /usr/bin/env node | ||
}); | ||
parser.addArgument(['-f', '--file'], { | ||
help: 'Path to env.yml', | ||
dest: 'file', | ||
defaultValue: 'env.yml' | ||
}); | ||
const args = parser.parseArgs(); | ||
@@ -19,3 +24,3 @@ const config = utils_1.loadConfig(); | ||
try { | ||
const contents = fs.readFileSync('env.yml', 'utf8'); | ||
const contents = fs.readFileSync(args.file, 'utf8'); | ||
document = inputParser_1.parse(contents, args.stage); | ||
@@ -22,0 +27,0 @@ } |
{ | ||
"name": "dotenvi", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"author": "Ben Ross", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -17,2 +17,7 @@ #! /usr/bin/env node | ||
}); | ||
parser.addArgument(['-f', '--file'], { | ||
help: 'Path to env.yml', | ||
dest: 'file', | ||
defaultValue: 'env.yml' | ||
}); | ||
@@ -24,3 +29,3 @@ const args = parser.parseArgs(); | ||
try { | ||
const contents = fs.readFileSync('env.yml', 'utf8') | ||
const contents = fs.readFileSync(args.file, 'utf8') | ||
document = parse(contents, args.stage); | ||
@@ -27,0 +32,0 @@ } catch (error) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
372972
1219
822
1