git/orchard/main
updater/render/__init__.py
41 lines844 B last change raw · history
"""Renderers.

Each module turns domain objects into list[Text] on one shared column grid, with
no terminal or process state of its own, so every screen is testable by simply
calling it and checking the result.
"""

from .audit import build as audit_screen
from .base import (
    MIN_WIDTH,
    Columns,
    Screen,
    human_age,
    human_bytes,
    truncate,
)
from .build import FeedEntry, Totals
from .build import build as build_screen
from .review import AurRow, CheckRow, RepoRow, Review, Step, VcsRow
from .review import build as review_screen

__all__ = [
    "MIN_WIDTH",
    "AurRow",
    "CheckRow",
    "Columns",
    "FeedEntry",
    "RepoRow",
    "Review",
    "Screen",
    "Step",
    "Totals",
    "VcsRow",
    "audit_screen",
    "build_screen",
    "human_age",
    "human_bytes",
    "review_screen",
    "truncate",
]