"""Business logic for {{ cookiecutter.project_name }}.

The CLI layer (``cli.py``) is thin — all logic lives here so it can be
unit-tested without invoking the Typer runner.
"""

from __future__ import annotations

__version__ = "0.1.0"


def greet(name: str) -> str:
    """Return a greeting string for the given name."""
    if not name:
        return "Hello, stranger!"
    return f"Hello, {name}!"