"""Typer CLI commands for {{ cookiecutter.project_name }}."""

from __future__ import annotations

import typer

from {{ cookiecutter.project_name }}.core import greet, __version__

app = typer.Typer(help="{{ cookiecutter.description }}", no_args_is_help=True)


@app.command()
def hello(name: str = typer.Argument("world", help="Name to greet")) -> None:
    """Print a greeting for the given name."""
    typer.echo(greet(name))


@app.command()
def version() -> None:
    """Print the installed version."""
    typer.echo(__version__)