Skip to main content

maybe_notify

Function maybe_notify 

Source
pub async fn maybe_notify(format: Format, base_url: &str)
Expand description

The pre-command hook. Prints at most one line, to stderr, and returns nothing to fail on.

format is taken only so a future format can opt out; the notice is printed in both current formats, since stderr is outside the --json stdout contract and an agent needs the notice as much as a human does.