@acryps/environment
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -132,2 +132,6 @@ "use strict"; | ||
} | ||
case '--export-json': { | ||
process.stdout.write(`${JSON.stringify(environment)}\n`); | ||
return process.exit(0); | ||
} | ||
case '--export-cluster': { | ||
@@ -141,2 +145,14 @@ const applicationFilter = await inputInterface.question('Cluster Application Name: '); | ||
} | ||
case '--export-shell': { | ||
for (let name in environment) { | ||
process.stdout.write(`${name}=${JSON.stringify(environment[name])}\n`); | ||
} | ||
return process.exit(0); | ||
} | ||
case '--export-dotenv': { | ||
for (let name in environment) { | ||
process.stdout.write(`export ${name}=${JSON.stringify(environment[name])}\n`); | ||
} | ||
return process.exit(0); | ||
} | ||
default: { | ||
@@ -143,0 +159,0 @@ const programLocation = (0, which_1.sync)(childProgram[0]); |
{ | ||
"name": "@acryps/environment", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"license": "GPL-3.0-only", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -41,12 +41,10 @@ # acryps environment | ||
## Exporting | ||
Export the current environment for another user by using | ||
``` | ||
environment --export | ||
``` | ||
The current configuration can be exported in various formats for import into other applications | ||
The current settings can be exported for vlcluster by running | ||
``` | ||
environment --export-cluster | ||
``` | ||
More exporters will be added at some point :) | ||
npx environment --export # exports as environment bundle, for import into environment | ||
npx environment --export-json # exports as json | ||
npx environment --export-shell # exports as NAME="VALUE" statements for shell scripts | ||
npx environment --export-dotenv # exports as export NAME="VALUE" statements for .env files | ||
npx environment --export-cluster # exports as vlcluster variable commands | ||
``` |
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
10512
194
49