From 2bc0c0ad644599157f291c7cad6ec345ccb8e019 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 17 Nov 2015 22:02:30 -0600 Subject: [PATCH] Add Try A Clojure Project In The REPL as a clojure til. --- README.md | 1 + clojure/try-a-clojure-project-in-the-repl.md | 30 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 clojure/try-a-clojure-project-in-the-repl.md diff --git a/README.md b/README.md index 7260e28..3ad1085 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Specify the Directory of a Shell Command](clojure/specify-the-directory-of-a-shell-command.md) - [Splitting On Whitespace](clojure/splitting-on-whitespace.md) - [Swap Two Items in a Vector](clojure/swap-two-items-in-a-vector.md) +- [Try A Clojure Project In The REPL](clojure/try-a-clojure-project-in-the-repl.md) - [Type of Anything](clojure/type-of-anything.md) - [When Overflow Is Desired](clojure/when-overflow-is-desired.md) diff --git a/clojure/try-a-clojure-project-in-the-repl.md b/clojure/try-a-clojure-project-in-the-repl.md new file mode 100644 index 0000000..f75e495 --- /dev/null +++ b/clojure/try-a-clojure-project-in-the-repl.md @@ -0,0 +1,30 @@ +# Try A Clojure Project In The REPL + +The `lein-try` plugin can be added to your lein profile as a way to quickly +try out a clojure project. By feeding `lein try` a project name and version, +it will drop you into a repl session with that project loaded + +The `lein-try` plugin is a tool that makes it easy to quickly try out a +clojure project in the lein repl. Given the name and version of a clojure +project, it will drop you into a repl with that project loaded in. This is a +great way to get the feel for the features of an unfamiliar clojure library +before dropping it in as a dependency to your own project. + +First, add the plugin to your `~/.lein/profiles.clj` file by including the +following line in the `:plugins` vector: + +``` +[lein-try "0.4.3"] +``` + +Then simply invoke the plugin with whatever project you want to try: + +``` +$ lein try automat +``` + +And to include a specific version number: + +``` +$ lein try automat "0.1.3" +```