dotenv-cli
Advanced tools
Comparing version 7.2.1 to 7.3.0
10
cli.js
@@ -22,3 +22,3 @@ #!/usr/bin/env node | ||
' --no-expand skip variable expansion', | ||
' -o, --override override system variables', | ||
' -o, --override override system variables. Cannot be used along with cascade (-c).', | ||
' command `command` is the actual command you want to run. Best practice is to precede this command with ` -- `. Everything after `--` is considered to be your command. So any flags will not be parsed by this tool but be passed to your command. If you do not do it, this tool will strip those flags' | ||
@@ -33,2 +33,9 @@ ].join('\n')) | ||
const override = argv.o || argv.override; | ||
if (argv.c && override) { | ||
console.error('Invalid arguments. Cascading env variables conflicts with overrides.') | ||
process.exit(1) | ||
} | ||
var paths = [] | ||
@@ -78,3 +85,2 @@ if (argv.e) { | ||
paths.forEach(function (env) { | ||
const override = argv.o || argv.override; | ||
var parsedFile = dotenv.config({ path: path.resolve(env), override }) | ||
@@ -81,0 +87,0 @@ if (argv.expand !== false) { |
{ | ||
"name": "dotenv-cli", | ||
"description": "A global executable to run applications with the ENV variables loaded by dotenv", | ||
"version": "7.2.1", | ||
"version": "7.3.0", | ||
"author": "entropitor", | ||
@@ -11,3 +11,3 @@ "bin": { | ||
"cross-spawn": "^7.0.3", | ||
"dotenv": "^16.0.0", | ||
"dotenv": "^16.3.0", | ||
"dotenv-expand": "^10.0.0", | ||
@@ -14,0 +14,0 @@ "minimist": "^1.2.6" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9317
94
Updateddotenv@^16.3.0