(-reload this)
(-source this k)
(-value this k)
(create {:keys [prefix env-vars java-system-props local-config xdg-config
prefix-env prefix-props]
:as opts
:or {env-vars true
java-system-props true
local-config true
xdg-config true
prefix-env true
prefix-props true}})
(env-key opts)
The current environment name, as a keyword, for instance :dev
, :prod
, or :test
Checked in order
:env
explicitly passed inPREFIX_ENV
env var, based on the configured :prefix
, uppercasedprefix.env
Java system property (use Java CLI flag -D
, e.g. -Dprefix.env=prod
)CI=true
then :test
(convention used by most CI providers):dev
The current environment name, as a keyword, for instance `:dev`, `:prod`, or `:test` Checked in order - `:env` explicitly passed in - `PREFIX_ENV` env var, based on the configured `:prefix`, uppercased - `prefix.env` Java system property (use Java CLI flag `-D`, e.g. `-Dprefix.env=prod`) - if env var `CI=true` then `:test` (convention used by most CI providers) - otherwise: `:dev`
(key->env-var prefix k)
Take the key used to identify a setting or secret, and turn it into a string suitable for use as an environment variable.
Take the key used to identify a setting or secret, and turn it into a string suitable for use as an environment variable. - if the key is already a string it is left untouched - otherwise it is assumed to be an ident (symbol or keyword) - identifiers are uppercased and munged, as per [[munge]] - dashes become underscores - if the ident is qualified (has a namespace), two underscores are used to separate name and namespace
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close