This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-28
Channels
- # aatree (1)
- # admin-announcements (5)
- # beginners (5)
- # braid-chat (2)
- # cbus (2)
- # cljs-dev (8)
- # cljsrn (13)
- # clojure (101)
- # clojure-chicago (1)
- # clojure-greece (11)
- # clojure-russia (77)
- # clojure-taiwan (1)
- # clojure-uk (5)
- # clojurescript (73)
- # core-async (5)
- # core-matrix (1)
- # cursive (5)
- # datomic (10)
- # devcards (44)
- # emacs (16)
- # hoplon (207)
- # keechma (5)
- # lein-figwheel (1)
- # leiningen (5)
- # liberator (3)
- # melbourne (1)
- # om (171)
- # onyx (25)
- # parinfer (1)
- # proton (2)
- # re-frame (28)
- # reagent (50)
- # untangled (7)
- # yada (4)
The context is that I have a fn "migrate" which I would like to fire off from a dev provision shell script.
@kardan: you could use :repl-options {:init …}
maybe? you won’t be directly able to eval something as it would be typed in the repl, but it could work for your scenario, you can run some code PRIOR repl start
A more advanced solution would be something like what I did in Dirac Agent[1]. I start a nREPL, run my init code on a separate thread, which waits for nREPL to fully start, then connects to it and can do some work there over an nREPL session. But this feels like too much for your situation. [1] https://github.com/binaryage/dirac/blob/master/src/agent/dirac/agent_impl.clj#L140