cli: rename nrepl command to --nrepl-server flag
Match babashka's spelling: the nREPL server now starts with `bin/joltc --nrepl-server [port]` instead of `bin/joltc nrepl`. Port parsing and JOLT_NREPL_PORT are unchanged. Also wire up --help/-h to print usage (previously only the no-arg invocation did), and fix the usage listing to show the real flag. Smoke now asserts --help mentions --nrepl-server. Docs updated to match.
This commit is contained in:
parent
1375a59568
commit
823bc5bcc6
4 changed files with 55 additions and 17 deletions
|
|
@ -46,6 +46,15 @@ check '(== 3 3.0)' 'true'
|
|||
check_loc '(throw (ex-info "boom" {}))' ' at 1:'
|
||||
check_loc '(do (+ 1 1) (/ 1 0))' ' at 1:'
|
||||
|
||||
# --help prints usage, and lists the nREPL server under its real flag name.
|
||||
help_out="$(bin/joltc --help 2>/dev/null)"
|
||||
if printf '%s' "$help_out" | grep -q -- '--nrepl-server'; then
|
||||
pass=$((pass + 1))
|
||||
else
|
||||
echo " FAIL: --help should list --nrepl-server"
|
||||
fails=$((fails + 1))
|
||||
fi
|
||||
|
||||
# clojure.test extension points (assert-expr / do-report / report) need separate
|
||||
# top-level forms — assert-expr must register before `is` expands — so this is a
|
||||
# multi-form `joltc run`, not an -e one-liner. The file self-checks its tallies.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue