INNER CODE UNIT · Python

has_mission_specs

Priivacy-ai/spec-kitty · src/specify_cli/retrospective/cli.py:242

    has_mission_specs = (resolved_project / KITTY_SPECS_DIR).exists()
    if not has_kittify and not has_mission_specs:
        _err_console.print(
            "[red]Error:[/red] Project root invalid: "
            f"neither .kittify/ nor kitty-specs/ found in {resolved_project}"
        )
        raise typer.Exit(1)

    # Parse --since
    since_date: date | None = None
    if since is not None:
        try:
            since_date = date.fromisoformat(since)
        except ValueError:
            _err_console.print(
                f"[red]Error:[/red] Invalid --since date {since!r}. "
                "Expected ISO-8601 format (YYYY-MM-DD)."
            )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…