Liking cljdoc? Tell your friends :D

refactor-nrepl.middleware


def-opcljmacro

(def-op op-name handler-sym result-key & {:keys [serialize? pr-str no-args?]})

Register a simple nREPL op.

op-name - op name (string). handler-sym - quoted fully-qualified symbol of the handler fn; required and resolved lazily on first use. result-key - keyword under which to send the handler's return value.

Options: :serialize? - pass the handler result through serialize-response before replying (honors :serialization-format in msg) :pr-str - pr-str the handler result before replying :no-args? - invoke the handler with no arguments (default: pass msg)

Register a simple nREPL op.

`op-name`      - op name (string).
`handler-sym`  - quoted fully-qualified symbol of the handler fn;
                 required and resolved lazily on first use.
`result-key`   - keyword under which to send the handler's return value.

Options:
  :serialize? - pass the handler result through `serialize-response`
                before replying (honors :serialization-format in msg)
  :pr-str     - pr-str the handler result before replying
  :no-args?   - invoke the handler with no arguments (default: pass msg)
sourceraw docstring

op-prefixclj

source

refactor-nrepl-opsclj

source

wrap-refactorclj

(wrap-refactor handler)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close