nREPL middleware / manual-use lib to add all contrib deps
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sample
src/contrib_repl
test/contrib_repl
.gitignore
README.md
project.clj

README.md

contrib-repl

nREPL middleware to look up the latest versions of all Clojure contrib libraries and add them as dependencies. Can also be used manually in an already-running REPL.

Usage

Option A. Use as nREPL middleware

Edit project.clj:

  :dependencies [[rplevy/contrib-repl "0.1.2"]]
  :repl-options {:nrepl-middleware [contrib-repl.middleware/add-contrib-deps]}

Then run lein repl to enter a repl with all contrib dependencies added.

Option B. Invoke from an already running REPL

In a REPL session:

(require '[cemerick.pomegranate :as pom])
(pom/add-dependencies :coordinates '[[rplevy/contrib-repl "0.1.2"]]
                      :repositories {"clojars" "http://clojars.org/repo"})
(require '[contrib-repl.manually :refer [add-contrib-deps]])
(add-contrib-deps) ; add all of the contrib libraries

You can also add just a subset of the contrib libraries:

(add-contrib-deps ["tools.trace" "core.match"]) ; only add these libraries

License

Copyright © 2012 Robert P. Levy

Distributed under the Eclipse Public License, the same as Clojure.