Map environment variables to nested configuration keys
masterSince environment variables are flat, cprop uses specific character conventions to represent nested structures and special keyword characters:
- Nesting: Use double underscores (
__) to represent a level of nesting. A single underscore (_) is converted to a hyphen (-) to match Clojure keywords. - Namespaced Keywords: To represent a namespace separator
/, use triple underscores (___). - Dotted Keywords: Dotted keywords are supported directly (e.g.,
DOTTED.KEY).
Example: To override {:http {:pool {:socket-timeout 60000}}}:
export HTTP__POOL__SOCKET_TIMEOUT=4242