Go YAML Parser and Environment Setter
Description
This Go application is designed to parse YAML files and use the specified keys to set environment variables.
Installation
go get -u github.com/vikingpingvin/yml2env
go install -u github.com/vikingpingvin/yml2env
Example CLI Usage
# config.yaml
app:
name: "YourApp"
version: "1.0.0"
database:
host: "localhost"
port: 5432
username: "yourusername"
password: "yourpassword"
In the above example, calling
./yml2env database.host database.port path/to/your/config.yaml
would create the following output:
ENV VAR SET: DATABASE_HOST=localhost
ENV VAR SET: DATABASE_PORT=5432
Contributing
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and send a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.