diff --git a/README.md b/README.md index c375698..2932d2d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### clojure +- [Evaluate One Liners With lein-exec](evaluate-one-liners-with-lein-exec.md) - [Expanding Macros](clojure/expanding-macros.md) - [Quick Clojure Docs](clojure/quick-clojure-docs.md) - [Specify the Directory of a Shell Command](clojure/specify-the-directory-of-a-shell-command.md) diff --git a/clojure/evaluate-one-liners-with-lein-exec.md b/clojure/evaluate-one-liners-with-lein-exec.md new file mode 100644 index 0000000..2aedf56 --- /dev/null +++ b/clojure/evaluate-one-liners-with-lein-exec.md @@ -0,0 +1,10 @@ +# Evaluate One Liners With lein-exec + +You can install the [`lein-exec`](https://github.com/kumarshantanu/lein-exec) +plugin and then use it to evaluate one liner bits of code with the `-e` +flag. + +```bash +$ lein exec -e '(println "foo" (+ 20 30))' +foo 50 +```