mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
11 lines
257 B
Markdown
11 lines
257 B
Markdown
# 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
|
|
```
|