Skip to content

Commit 9d7ee61

Browse files
committed
CLJ-1172: supply main entry points for all standard REPLs
1 parent 46a3995 commit 9d7ee61

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

src/clj/cljs/repl/browser.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ goog.events.getProxy/f<@http://localhost:9000/out/goog/events/events.js:276:16"
572572
[& {:as opts}]
573573
(repl-env* opts))
574574

575+
(defn -main []
576+
(repl/repl (repl-env)))
577+
575578
(comment
576579

577580
(require '[cljs.repl :as repl])

src/clj/cljs/repl/nashorn.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,6 @@
226226
"Create a Nashorn repl-env for use with the repl/repl* method in Clojurescript."
227227
[& {:as opts}]
228228
(repl-env* opts))
229+
230+
(defn -main []
231+
(repl/repl (repl-env)))

src/clj/cljs/repl/node.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,5 @@
200200
[& {:as options}]
201201
(repl-env* options))
202202

203+
(defn -main []
204+
(repl/repl (repl-env)))

src/clj/cljs/repl/rhino.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@
224224
[& {:as opts}]
225225
(repl-env* opts))
226226

227+
(defn -main []
228+
(repl/repl (repl-env)))
229+
227230
(comment
228231

229232
(repl/-parse-stacktrace (repl-env)

0 commit comments

Comments
 (0)