Update README about netrepl and make sure we can stop the watch command

This commit is contained in:
heyarne 2021-07-29 21:45:18 +02:00
commit 0bae8c01f8
4 changed files with 15 additions and 13 deletions

View file

@ -2,17 +2,11 @@
(import spork/netrepl)
(import ./views)
(import ./utils)
# ---
# expose the a netrepl for conjure to connect to when running in repl mode
# ---
# disable pretty-printing
(defn bag-repl? [cli-args]
(= ["bag" "--repl"] (slice cli-args 0 2)))
(def conjure-repl
(when (bag-repl? (dyn :args))
(thread/new (fn [_] (netrepl/server)))))
(setdyn :pretty-format "%.20q")
# ---
# site config