https://github.com/kjczarne/genevieve
Generate env variable scripts for Bash and PowerShell
https://github.com/kjczarne/genevieve
Last synced: 4 months ago
JSON representation
Generate env variable scripts for Bash and PowerShell
- Host: GitHub
- URL: https://github.com/kjczarne/genevieve
- Owner: kjczarne
- Created: 2022-02-11T21:41:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T14:39:58.000Z (over 3 years ago)
- Last Synced: 2025-02-16T13:47:45.219Z (4 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

[](https://codecov.io/gh/kjczarne/genevieve)
# Genevieve
**GEN**erate **E**n**VI**ronm**E**nt **V**ariables **E**verywhere.
This is an extremely simple utility that produces:
- `env.ps1` PowerShell script
- `env.env` Bourne Shell scriptThe input is a `yaml` file in the form of:
```yaml
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`.## Troubleshooting
### Script execution permissions
#### PowerShell
Adjust your `ExecutionPolicy`.
#### Bourne shell
Run `chmod +x env.env`.