Skip to content

gitea.cli.notification.main

main

CLI commands for managing notifications.

Functions:

gitea.cli.notification.main.register_commands

register_commands() -> None

Register notification-related commands to the notification_app.

Source code in src/gitea/cli/notification/main.py
def register_commands() -> None:
    """Register notification-related commands to the notification_app."""
    from gitea.cli.notification.list import list_command  # noqa: PLC0415
    from gitea.cli.notification.read import read_command  # noqa: PLC0415

    notification_app.command("list", help="List notifications.")(list_command)
    notification_app.command("read", help="Mark notifications as read.")(read_command)