Customizable configuration
Customizable configuration
(change-defaults & kvs)
Adds key-value pairs to the root configuration. Does not affect any temporary (dynamic) configurations.
Note: change-defaults
can only be used in configuration files.
It will not work within namespaces containing facts.
Adds key-value pairs to the root configuration. Does not affect any temporary (dynamic) configurations. Note: `change-defaults` can only be used in configuration files. It will not work within namespaces containing facts.
(choice key)
Returns the configuration value of key
If a java system property midje.the-key
is set, uses that value instead of
whatever is in the config at :the-key
Returns the configuration value of `key` If a java system property `midje.the-key` is set, uses that value instead of whatever is in the config at `:the-key`
(conform-config config)
Transforms keys from non-standard representation to the standard one
Transforms keys from non-standard representation to the standard one
(merge-permanently! additions)
Merges the given map into the root configuration. Does not affect any temporary (dynamic) configurations.
Merges the given map into the root configuration. Does not affect any temporary (dynamic) configurations.
(with-augmented-config additions & body)
Dynamically bind the configuration. Example: (require '[clojure.config :as config]) (config/with-augmented-config {:check-after-creation false} (fact 1 => 2))
Dynamically bind the configuration. Example: (require '[clojure.config :as config]) (config/with-augmented-config {:check-after-creation false} (fact 1 => 2))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close