https://github.com/178inaba/y2e
y2e sets environment variables from a YAML file.
https://github.com/178inaba/y2e
environment-variables golang yaml
Last synced: 2 months ago
JSON representation
y2e sets environment variables from a YAML file.
- Host: GitHub
- URL: https://github.com/178inaba/y2e
- Owner: 178inaba
- License: mit
- Created: 2019-10-22T08:44:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T18:04:49.000Z (over 6 years ago)
- Last Synced: 2025-10-20T10:41:36.607Z (8 months ago)
- Topics: environment-variables, golang, yaml
- Language: Makefile
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# y2e
[](https://circleci.com/gh/178inaba/y2e)
[](https://goreportcard.com/report/github.com/178inaba/y2e)
y2e sets environment variables from a YAML file.
## Usage
Create a YAML file with the environment variable name as the key.
```yaml
FOO: foo
BAR: 123
BAZ: true
```
Pass YAML file to `y2e` and execute it as a subcommand of `eval` command.
After execution, the value of the YAML file is set as an environment variable.
```console
$ eval "$(y2e your_env_var.yaml)"
$ env | grep -e FOO -e BAR -e BAZ
FOO=foo
BAR=123
BAZ=true
```
### Options
- `-verbose`
- Output detail log to the stderr.
## Install
```console
$ go get -u github.com/178inaba/y2e
```
## License
[MIT](LICENSE)
## Author
[178inaba](https://github.com/178inaba)