GENerate EnVIronmEnt Variables Everywhere.
This is an extremely simple utility that produces:
env.ps1
PowerShell scriptenv.env
Bourne Shell script
The input is a yaml
file in the form of:
variables:
SOME_KEY: 'some_value'
In POSIX shells the generated env.env
can be used via: source env.env
to set the environment variables set in the YAML file.
In PowerShell the env.ps1
script should be run directly: ./env.ps1
.
Adjust your ExecutionPolicy
.
Run chmod +x env.env
.