(get-user-configs)
This gets the path to user config from sys env var, then returns a map of user config with resolved :theme entry.
First, the path set by the user via "FIREWORKS_CONFIG" env var is validated. If it is a non-blank string that does not point to .edn file, issue a bad-option-value-warning. Also update messaging/warning-and-errors atom, which will surface the warning if the user is in cljs land, and maybe not looking at the build process in their terminal.
If the path set by the user via "FIREWORKS_CONFIG" env var points to a
non-existant .edn
file, or a file that is not parseable by
clojure.edn/read
, a warning is issued via fireworks.macros/load-edn.
Also update the messaging/warning-and-errors
atom, which will surface the
warning if the user is in cljs land, and maybe not looking at the build
process in their terminal.
If the config map is successfully loaded from edn file, and the :theme entry
is a valid .edn
path, but this path points to a non-existant .edn
file,
or a file that is not parseable by clojure.edn/read
, a warning is issued
via fireworks.macros/load-edn.
If a valid :theme map is resolved, it will be assoc'd to the user's config map, and returned. Otherwised, just the config map is returned.
This gets the path to user config from sys env var, then returns a map of user config with resolved :theme entry. First, the path set by the user via "FIREWORKS_CONFIG" env var is validated. If it is a non-blank string that does not point to .edn file, issue a bad-option-value-warning. Also update messaging/warning-and-errors atom, which will surface the warning if the user is in cljs land, and maybe not looking at the build process in their terminal. If the path set by the user via "FIREWORKS_CONFIG" env var points to a non-existant `.edn` file, or a file that is not parseable by `clojure.edn/read`, a warning is issued via fireworks.macros/load-edn. Also update the `messaging/warning-and-errors` atom, which will surface the warning if the user is in cljs land, and maybe not looking at the build process in their terminal. If the config map is successfully loaded from edn file, and the :theme entry is a valid `.edn` path, but this path points to a non-existant `.edn` file, or a file that is not parseable by `clojure.edn/read`, a warning is issued via fireworks.macros/load-edn. If a valid :theme map is resolved, it will be assoc'd to the user's config map, and returned. Otherwised, just the config map is returned.
(keyed vars)
(keyed key-type vars)
Create a map in which, for each symbol S in vars, (keyword S) is a key mapping to the value of S in the current scope. If passed an optional :strs or :syms first argument, use strings or symbols as the keys.
Create a map in which, for each symbol S in vars, (keyword S) is a key mapping to the value of S in the current scope. If passed an optional :strs or :syms first argument, use strings or symbols as the keys.
(let-map kvs)
Equivalent of (let [a 5 b (+ a 5)] {:a a :b b})
Equivalent of (let [a 5 b (+ a 5)] {:a a :b b})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close