yml2env

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 6 Imported by: 0

README

Go YAML Parser and Environment Setter

Go Report Card License

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

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and send a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL