Coverage for src\gibr\notify.py: 100%
12 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:51 +0300
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:51 +0300
1"""Utility functions for displaying notifications in the CLI using Click."""
3import click
6def info(msg):
7 """Display an informational message."""
8 click.secho(f"ℹ️ {msg}", fg="blue")
11def success(msg):
12 """Display a success message."""
13 click.secho(f"✅ {msg}", fg="green", bold=True)
16def party(msg):
17 """Display a celebratory message."""
18 click.secho(f"🎉 {msg}", fg="magenta", bold=True)
21def warning(msg):
22 """Display a warning message."""
23 click.secho(f"⚠️ {msg}", fg="yellow")
26def error(msg):
27 """Display an error message."""
28 click.secho(f"❌ {msg}", fg="red", bold=True)
29 raise click.Abort()