-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for using environment variables in INI files
- Loading branch information
richard.gooding
committed
Jul 23, 2015
1 parent
7c3de1d
commit f37904a
Showing
3 changed files
with
161 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
invalid_item = will not be processed | ||
|
||
[default] | ||
item = value | ||
var1 = {{ENV:TESTVAR1}} | ||
var2 = {{ENV:TESTVAR2:defaultvalue}} | ||
var1and2 = {{ENV:TESTVAR1}}-{{ENV:TESTVAR2}} | ||
nonexistentDefault = {{ENV:NONEXISTENT:defaultValue}} | ||
nonexistentNoDefault = {{ENV:NONEXISTENT}} | ||
|
||
[database] | ||
username = root | ||
password = "fjkh%$(@££!£!@fwwejg" | ||
hostname = localhost | ||
database = packaged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters