Documentation
¶
Overview ¶
Package exec is a notification channel that runs a local command (named by NOTIFY_EXEC) with the notification JSON on stdin — a true local hook (desktop toast, log shipper, pager, …). It is a self-registering plug-in for the notify registry: importing it for its init() adds exec delivery with no change to the send path.
TRUST BOUNDARY: the command comes from NOTIFY_EXEC in the daemon's own environment, NOT from any API client. Running it is the same trust as choosing the daemon binary itself; it is never settable over HTTP (unlike the webhook target, which is API-configurable). Each invocation is bounded by a timeout so a hung or slow hook can never wedge a turn, and stdout/stderr are discarded (a bounded stderr snippet is kept only for error reporting). The notification is delivered on stdin, never interpolated into the command string — no shell-injection surface from notification content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.