Skip to content

gitea.cli.label.main

main

CLI commands for managing labels.

Functions:

gitea.cli.label.main.register_commands

register_commands() -> None

Register label-related commands to the label_app.

Source code in src/gitea/cli/label/main.py
def register_commands() -> None:
    """Register label-related commands to the label_app."""
    from gitea.cli.label.create import create_command  # noqa: PLC0415
    from gitea.cli.label.delete import delete_command  # noqa: PLC0415
    from gitea.cli.label.list import list_command  # noqa: PLC0415
    from gitea.cli.label.update import update_command  # noqa: PLC0415

    label_app.command("create", help="Create a label.")(create_command)
    label_app.command("delete", help="Delete a label.")(delete_command)
    label_app.command("list", help="List labels.")(list_command)
    label_app.command("update", help="Update a label.")(update_command)