To be written; here’s some ideas
- a non-interactive nrepl client
- shim between nrepl and other tools
nr
nr
without SSHnr
with Jq (jq
)bb
)nr
$ nr -e '(+ 1 2)'
3
$ echo '(+ 1 2)' | nr
3
Create a file plus.clj
with the following content:
(+ 1 2)
Pass the file to nr
through the command line:
$ nr plus.clj
3
Create a script file plus.nr.clj
with the following content:
#!/usr/bin/env -S nr -!
(+ 1 2)
Ensure that the file is executable and then run it like so:
$ ./plus.nr.clj
3