conform
- -o Output file path
- -p Environment variable prefix
- -f Output file format
ENV
- COUCHDB_HTTPD__BIND_ADDRESS=0.0.0.0
Execute
$ conform -p "COUCHDB_" -f "ini"
Output:
[httpd]
bind_address=0.0.0.0
Execute
$ conform -p "COUCHDB_" -f "yml"
Output:
httpd:
bind_address: "0.0.0.0"
Execute
$ conform -p "COUCHDB_" -f "json"
Output:
{
"httpd": {
"bind_address": "0.0.0.0"
}
}
ENV
- COUCHDB_TEST__ARR___=one
- COUCHDB_TEST__ARR___=two
Execute
$ conform -p "COUCHDB_" -f "ini"
Output:
[test]
arr[]=one
arr[]=two
Execute
$ conform -p "COUCHDB_" -f "yml"
Output:
test:
arr:
- "one"
- "two"
Execute
$ conform -p "COUCHDB_" -f "json"
Output:
{
"test": {
"arr": [
"one",
"two"
]
}
}