Skip to content

Commit 2503b72

Browse files
committed
Fixed style in README.md.
1 parent ea15f3d commit 2503b72

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,35 @@ As environment variables can only be strings, they are also parsed as inline
122122
Yaml values to allows specifying ``null``, ``false``, ``true`` or numbers
123123
easily.
124124

125+
#### Using same names for parameters and environment variables
126+
127+
As an alternative, you can set environment variables with the same uppercased
128+
name of your dist parameters and use ``"env-map": "auto"`` to get an auto mapping.
129+
``my_first_param`` parameter will map ``MY_FIRST_PARAM`` environment variable.
130+
131+
Given this ``parameters.yml.dist`` file:
132+
133+
```yaml
134+
# parameters.yml.dist
135+
136+
parameters:
137+
my_first_param: "some value"
138+
my_second_param: "another value"
139+
140+
```
141+
142+
Following settings will produce the same result as previous example:
143+
144+
```json
145+
{
146+
"extra": {
147+
"incenteev-parameters": {
148+
"env-map": "auto"
149+
}
150+
}
151+
}
152+
```
153+
125154
### Renaming parameters
126155

127156
If you are renaming a parameter, the new key will be set according to the usual

0 commit comments

Comments
 (0)