warn_command()
Register a declarative hook that warns on a Bash command matching a pattern.
Usage
warn_command(
pattern,
*,
message,
tests=None,
events=Event.PostToolUse,
)Example
warn_command([“python”, “-c”, “*”], message=“Prefer uv run mtest”)