Reading feature flags from the process environment.
wagoe.core.config.feature-flags decides what a flag means, given an
environment map. This namespace is the one line that fetches the map, and it
lives in a shell because reading System/getenv is I/O — ambient input that
changes the answer without changing the arguments.
Both halves used to be in the core namespace, whose docstring promised no
side effects while five of its functions called (System/getenv) in a
convenience arity (BOU-302).
Reading feature flags from the process environment. `wagoe.core.config.feature-flags` decides what a flag means, given an environment map. This namespace is the one line that fetches the map, and it lives in a shell because reading `System/getenv` is I/O — ambient input that changes the answer without changing the arguments. Both halves used to be in the core namespace, whose docstring promised no side effects while five of its functions called `(System/getenv)` in a convenience arity (BOU-302).
(add-flags-to-config config)config with :feature-flags added from the process environment.
`config` with `:feature-flags` added from the process environment.
(all-flags)Every known flag's status, according to the process environment.
Every known flag's status, according to the process environment.
(enabled? flag-key)Whether flag-key is on, according to the process environment.
Whether `flag-key` is on, according to the process environment.
(env)The process environment as a Clojure map.
The process environment as a Clojure map.
(flag-info flag-key)What flag-key is and whether it is on, according to the process environment.
What `flag-key` is and whether it is on, according to the process environment.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |