nreplops-tool

nREPL Ops Tool

Overview

To be written; here’s some ideas

Features

Usage scenarios

Table of contents

Running nr

Expression as command line argument

$ nr -e '(+ 1 2)'
3

Expression through pipe

$ echo '(+ 1 2)' | nr
3

Expressions in file

Create a file plus.clj with the following content:

(+ 1 2)

Pass the file to nr through the command line:

$ nr plus.clj
3

Expressions as script file

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