gate()
Register a blocking gate — shorthand for nudge(message, block=True, ...).
Usage
gate(
message,
**kwargs,
)Example
gate(“Run tests before committing”, when=lambda evt: not has_tests(evt))
Register a blocking gate — shorthand for nudge(message, block=True, ...).
Usage
gate(“Run tests before committing”, when=lambda evt: not has_tests(evt))