fix: restore missing Todo import after refactor
This commit is contained in:
parent
1c20079608
commit
565d660bfe
|
|
@ -3,7 +3,7 @@ from pathlib import Path
|
|||
|
||||
import click
|
||||
|
||||
from .models import Priority, Status
|
||||
from .models import Priority, Status, Todo
|
||||
from .store import Store
|
||||
|
||||
|
||||
|
|
@ -32,12 +32,12 @@ def create(title: str, repo: str, priority: str, assignee: str, tags: tuple[str,
|
|||
)
|
||||
|
||||
|
||||
@main.command()
|
||||
@main.command(name="list")
|
||||
@click.option("--repo")
|
||||
@click.option("--status", type=click.Choice(["open", "in_progress", "blocked", "resolved"]))
|
||||
@click.option("--json", "as_json", is_flag=True)
|
||||
@click.option("--path", default=".agent_todos.db")
|
||||
def list(repo, status, as_json, path): # type: ignore[no-untyped-def]
|
||||
def list_todos(repo, status, as_json, path): # type: ignore[no-untyped-def]
|
||||
s = Status(status) if status else None
|
||||
todos = Store(db_path=path).list(status=s, repo=repo)
|
||||
if as_json:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user