Coverage for app\cli.py: 0%
11 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-25 15:02 -0300
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-25 15:02 -0300
1"""Command line interface."""
3import click
4from sqlmodel import Session, select
6from app.db import get_session, init_db
7from app.models import Task
10@click.group()
11def cli():
12 pass
15@cli.command()
16def init():
17 """Inicializa o banco de dados."""
18 init_db()
19 click.echo("Banco de dados inicializado.")