Skip to content

Commit

Permalink
Introduce docs for arrays on env vars (#706)
Browse files Browse the repository at this point in the history
* Introduce array support from java arguments
  • Loading branch information
ignasi35 authored Oct 1, 2020
1 parent 82df5a6 commit 8648e07
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,20 @@ With this option enabled only environment variables starting with
i.e. The environment variable `CONFIG_FORCE_a_b__c___d` set the
configuration key `a.b-c_d`

### Set array values from env variables

Setting the value of array items from environment variables requires
specifing the index in the array for the value. So, while in HOCON
you can set multiple values into an array or append to an array:

## HOCON
items = ["a", "b"]
items += "c"

using java arguments you specify the exact position:

-Ditems.0="a" -Ditems.1="b"

### Concatenation

Values _on the same line_ are concatenated (for strings and
Expand Down

0 comments on commit 8648e07

Please sign in to comment.