INNER CODE UNIT · Python

_render_human

Priivacy-ai/spec-kitty · src/specify_cli/charter_runtime/preflight/cli.py:113

def _render_human(result: CharterPreflightResult) -> None:
    """Print a compact human summary."""
    headline_colour = "green" if result.passed else "red"
    headline = "PASSED" if result.passed else "BLOCKED"
    _console.print(f"[bold {headline_colour}]Charter preflight: {headline}[/bold {headline_colour}]")

    for check in result.checks:
        colour = {
            "fresh": "green",
            "skipped": "dim",
            "built_in_only": "cyan",
            "stale": "yellow",
            "missing": "blue",
            "invalid": "red",
        }.get(check.state, "white")
        line = f"  [{colour}]{check.state.upper():>14}[/{colour}]  {check.name}: {check.detail}"
        _console.print(line)
        if check.remediation:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…