Update README about netrepl and make sure we can stop the watch command
This commit is contained in:
parent
5b3eaf2c35
commit
0bae8c01f8
4 changed files with 15 additions and 13 deletions
12
index.janet
12
index.janet
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue