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.
(is-core-async-channel? c)
Is this entity a core.async channel?
Is this entity a core.async channel?
(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
No orchestra in JS, so we can simply ignore this call.
No orchestra in JS, so we can simply ignore this call.
(read-value-from-core-async-channel & args)
Reads a value from a core.async channel, blocking.
Reads a value from a core.async channel, blocking.
(yaml-decode & args)
Resolve and apply clj-yaml's yaml decoding dynamically.
Resolve and apply clj-yaml's yaml decoding dynamically.
(yaml-decode & _)
In JS, no YAML decoding - we throw an error
In JS, no YAML decoding - we throw an error
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close