CLI-matic is supposed to work whether they are present or not.
Detection is taken from core.clj
in https://github.com/dakrone/clj-http
### This namespace contains optional dependencies for CLJ. CLI-matic is supposed to work whether they are present or not. * JSON (Cheshire) * YAML (io.forward/yaml) * Orchestra Detection is taken from `core.clj` in https://github.com/dakrone/clj-http
JSON is always available in CLJS.
### This namespace contains optional dependencies for CLJS. JSON is always available in CLJS.
(json-decode json)
Decodes a JSON string, without keywordizing.
Decodes a JSON string, without keywordizing.
We should use Transit if present, but this should be enough to get us started.
We should use Transit if present, but this should be enough to get us started. https://cljs.github.io/api/cljs.core/js-GTclj
(json-decode-cheshire & args)
Resolve and apply Cheshire's json decoding dynamically.
Resolve and apply Cheshire's json decoding dynamically.
(orchestra-instrument)
If Orchestra is present, runs instrumentation. If absent, do nothing.
While we are at it, we set up Expound to print meaningful errors.
Expound is a mandatory dependency, so we take for granted it's there.
The *explain-out*
binding will NOT be there in a compiled
uberjar, unless we call with-bindings
,
so we just go check. It will succeed from the REPL.
Ref: https://github.com/clojure/clojure/blob/clojure-1.9.0/src/clj/clojure/main.clj#L85
If Orchestra is present, runs instrumentation. If absent, do nothing. While we are at it, we set up Expound to print meaningful errors. Expound is a mandatory dependency, so we take for granted it's there. The `*explain-out*` binding will NOT be there in a compiled uberjar, unless we call `with-bindings`, so we just go check. It will succeed from the REPL. Ref: https://github.com/clojure/clojure/blob/clojure-1.9.0/src/clj/clojure/main.clj#L85
(yaml-decode & args)
Resolve and apply io.forward/yaml's yaml decoding dynamically.
Resolve and apply io.forward/yaml's yaml decoding dynamically.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close