(system-options system-name coll)'system-options' is an initialization macro which generates specs for the options of a component system. it requires the following arguments: 'system-name' a string or symbol used to create symbols for products of the macro (see below) 'coll' a collection of three value collections [unqualified-key validation-function default-value] system-options will create the following: a map containing all options keys and default values '{system-name}-defaults,' individual specs for each option specified '{namespace-name}/{option-keyname}', a hashmap spec containing all options '{system-name}-spec', and a merged options map function '{system-name}-options' which is used to obtain system options resulting from the merge of defaults and environment variables
'system-options' is an initialization macro which generates specs for the options of a component system.
it requires the following arguments:
'system-name' a string or symbol used to create symbols for products of the macro (see below)
'coll' a collection of three value collections [unqualified-key validation-function default-value]
system-options will create the following:
a map containing all options keys and default values '{system-name}-defaults,'
individual specs for each option specified '{namespace-name}/{option-keyname}',
a hashmap spec containing all options '{system-name}-spec',
and a merged options map function '{system-name}-options' which is used to obtain system options
resulting from the merge of defaults and environment variablescljdoc 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 |