Skip to main content

maybe_notify

Function maybe_notify 

Source
pub fn maybe_notify(fmt: Option<Format>)
Expand description

The single entry point: gates, then best-effort checks + notifies. Swallows all errors; never alters the process exit code.

The gate (format + TTY + opt-out) is evaluated before any I/O, so the common non-interactive/agent path costs nothing (ADR-0015).