Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgrigoryan25 authored Apr 30, 2022
1 parent eeb949d commit 27cad5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Hydra is a hybrid configuration management library for Go, created for simplicit

## Why?

In testing environments, you might not want to have separate configuration files for each one of your tests. Moreover, using more mature configuration libraries such as [Viper](https://github.com/spf13/viper), it is virtually impossible to write tests that use configuration files, since they have to be in a directory different than your project root, which honestly, makes stuff messy.
In testing environments, you might not want to have separate configuration files for each one of your tests. Moreover, when using more mature configuration libraries such as [Viper](https://github.com/spf13/viper), it is virtually impossible to write tests which use configuration files, since they have to be in a directory different than your project root, which honestly, makes stuff messy.

For this reason, we created Hydra, which will read, load, and fill in the blanks of the incomplete YAML configuration using environment variables. Think of it this way, if a YAML file does not exist, then Hydra will attempt to load the configuration using environment variables, optionally defined in your schema. However, if a configuration file was found, but has missing fields, Hydra will optionally fill in those fields with the values loaded from the environment.

Expand Down

0 comments on commit 27cad5f

Please sign in to comment.