Wire format shared by the JVM listener and the cljw hook client.
This namespace is loaded by ClojureWasm, which resolves only :git/url and
:local/root coordinates. It therefore requires nothing outside
clojure.core and clojure.edn, and must stay that way: a :mvn/version
dependency reached from here is silently skipped by cljw and fails at call
time rather than load time.
Wire format shared by the JVM listener and the cljw hook client. This namespace is loaded by ClojureWasm, which resolves only `:git/url` and `:local/root` coordinates. It therefore requires nothing outside `clojure.core` and `clojure.edn`, and must stay that way: a `:mvn/version` dependency reached from here is silently skipped by cljw and fails at call time rather than load time.
(args->event args now-ms tmux-env)The event map for one hook firing.
ARGS is the hook client's *command-line-args* tail: hook name, then the
tmux pane id. NOW-MS and TMUX-ENV are supplied by the caller so this stays
pure and testable off the clock.
The event map for one hook firing. ARGS is the hook client's `*command-line-args*` tail: hook name, then the tmux pane id. NOW-MS and TMUX-ENV are supplied by the caller so this stays pure and testable off the clock.
(classify hook)The hive-events id for tmux hook name HOOK, or unknown-event-id.
The hive-events id for tmux hook name HOOK, or `unknown-event-id`.
(decode s)The event carried by wire string S, or nil when S is not readable EDN.
edn/read-string never evaluates, so a malformed or hostile payload from
the socket is a nil here rather than a code path.
The event carried by wire string S, or nil when S is not readable EDN. `edn/read-string` never evaluates, so a malformed or hostile payload from the socket is a nil here rather than a code path.
tmux hook name -> the hive-events id an arrival dispatches.
The map is the open point: a newly observed hook is a new entry, not an edit
to classify. Hooks absent here are classified :tmux/unknown-hook rather
than guessed into an existing id.
tmux hook name -> the hive-events id an arrival dispatches. The map is the open point: a newly observed hook is a new entry, not an edit to `classify`. Hooks absent here are classified `:tmux/unknown-hook` rather than guessed into an existing id.
Classification of a hook name the table does not carry.
Classification of a hook name the table does not carry.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |