mirror of
https://github.com/jbranchaud/til
synced 2026-01-08 09:38:04 +00:00
Add Evaluate One Liners With lein-exec as a clojure til.
This commit is contained in:
10
clojure/evaluate-one-liners-with-lein-exec.md
Normal file
10
clojure/evaluate-one-liners-with-lein-exec.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user