Permalink
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
Cannot retrieve contributors at this time.
Cannot retrieve contributors at this time
| (ns boot.repl-client | |
| (:require | |
| [reply.main :as reply])) | |
| (def default-opts {:color true :history-file ".nrepl-history"}) | |
| (defn client [opts] | |
| (let [p (or (:port opts) (try (slurp ".nrepl-port") (catch Throwable _))) | |
| h (or (:host opts) "127.0.0.1") | |
| o (assoc (merge default-opts opts) :attach (str h ":" p))] | |
| (assert (and h p) "host and/or port not specified for REPL client") | |
| (reply/launch-nrepl o))) |