Fork me on GitHub
#lein-figwheel
<
2015-12-09
>
bhauman01:12:01

@gabe: figwheel-sidecar.config/fetch-config should do it for you, if you mean a Clojure REPL

gabe14:12:58

@bhauman: that’s what i was looking for. thx

peeja16:12:42

Anyone know a way to get the Figwheel REPL to pretty-print results? I see ways to make a CLJ REPL do it, but I'm not clear on if/how the same thing can work in CLJS and Figwheel.

mattly17:12:49

@peeja: in cljs, pprint is in the cljs.pprint ns

peeja17:12:30

Right, but is there a way to run the result output through pprint?

peeja17:12:50

I can wrap every expression I put on the REPL in pprint, but that's pretty tedious… simple_smile

mattly17:12:21

I’m not sure offhand

peeja21:12:46

(figwheel-sidecar.system/cljs-repl (:figwheel-system ra/*repl-api-system*) "dev" {:print #(when % (pprint/pprint (read-string %)))})

peeja21:12:01

The :print at the end is the important part

peeja21:12:28

I had been calling figwheel-sidecar.repl-api/cljs-repl, but that doesn't take an options map

peeja21:12:39

It probably should? Maybe I should file a PR