Pure planning of the tmux set-hook invocations that install and remove
ingestion.
The plan is DATA: a vector of argv vectors. Nothing here runs tmux, so the whole installation surface is testable without a server, and the boundary that does run it stays a one-liner.
Pure planning of the tmux `set-hook` invocations that install and remove ingestion. The plan is DATA: a vector of argv vectors. Nothing here runs tmux, so the whole installation surface is testable without a server, and the boundary that does run it stays a one-liner.
The hooks worth observing: the ones tmux fires for events hive did not cause. Hive already emits its own events for panes it creates and kills, so observing those would double-count; these are the arrivals that are otherwise invisible.
The hooks worth observing: the ones tmux fires for events hive did not cause. Hive already emits its own events for panes it creates and kills, so observing those would double-count; these are the arrivals that are otherwise invisible.
(hook-payload {:keys [socket-path client-cmd]} hook)The shell command tmux runs when HOOK fires.
#{hook_pane} is substituted by tmux with the pane the hook fired for. The
socket path precedes the hook name so the client's argv stays positional and
free of flag parsing.
The shell command tmux runs when HOOK fires.
`#{hook_pane}` is substituted by tmux with the pane the hook fired for. The
socket path precedes the hook name so the client's argv stays positional and
free of flag parsing.(install-plan {:keys [hooks] :as config})The argv vectors that install ingestion for CONFIG.
-g sets the hook globally so it survives session creation; without it a
hook reaches only the session that happened to exist at install time.
The argv vectors that install ingestion for CONFIG. `-g` sets the hook globally so it survives session creation; without it a hook reaches only the session that happened to exist at install time.
(uninstall-plan {:keys [hooks]})The argv vectors that remove ingestion for CONFIG.
-u unsets rather than setting empty: an empty hook is still a hook and
tmux would run it.
The argv vectors that remove ingestion for CONFIG. `-u` unsets rather than setting empty: an empty hook is still a hook and tmux would run it.
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 |