"""Post-generation hook for the cli cookiecutter template.

The cli template is unconditional (no use_auth/use_db flags affect it),
but the hook is kept for parity with backend/fullstack so the same
contract applies.
"""

from __future__ import annotations

import shutil
from pathlib import Path

PROJECT_DIR = Path.cwd()


def _remove(path: str) -> None:
    """Remove a file or directory relative to the generated project root."""
    p = PROJECT_DIR / path
    if p.is_dir():
        shutil.rmtree(p, ignore_errors=True)
    elif p.exists():
        p.unlink()


def main() -> None:
    """No conditional files for the cli template yet — placeholder."""
    return None


if __name__ == "__main__":
    main()