mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 16:48:01 +00:00
Add Evaluate One Liners With lein-exec as a clojure til.
This commit is contained in:
@@ -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)
|
||||
|
||||
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