envoy.core
Core environment handling namespace.
declare-env-var!
(declare-env-var! env-key properties)
Helper function for the defenv
macro. Declares properties for an environment variable, checking various schema attributes.
defenv
macro
(defenv env-key description & {:as opts})
Define a new environment variable used by the system.
known-vars
Map of environment keywords to a definition map which may contain a :description
and optionally a :type
for auto-coercion.
set-env!
(set-env! var-key value & kvs)
Updates the global environment map with a new value for the given variable. This should generally only be used from a REPL, and will not affect the actual system environment!