"""CLI app generated by intpot."""

import typer

app = typer.Typer()
{% for tool in tools %}


@app.command()
def {{ tool.name }}(
{%- for param in tool.parameters %}
    {{ param.name }}: {{ param.type_annotation }}
{%- if not param.required %} = typer.Option({{ param.default | repr }}, help="{{ param.description }}")
{%- else %} = typer.Argument(..., help="{{ param.description }}")
{%- endif %},
{%- endfor %}
) -> None:
    """{{ tool.description }}"""
    # TODO: implement
    typer.echo("{{ tool.name }} called")
{%- endfor %}


if __name__ == "__main__":
    app()
