1
0
mirror of https://github.com/jbranchaud/til synced 2026-03-04 06:58:45 +00:00

Add Try A Clojure Project In The REPL as a clojure til.

This commit is contained in:
jbranchaud
2015-11-17 22:02:30 -06:00
parent b507f201e6
commit 2bc0c0ad64
2 changed files with 31 additions and 0 deletions

View File

@@ -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"
```