Coverage for src \ truenex_memory \ adapters \ __main__.py: 0%
13 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-19 10:21 +0200
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-19 10:21 +0200
1"""Command-line entry point for agent adapter file generation."""
3from __future__ import annotations
5from pathlib import Path
6from typing import Annotated
8import typer
10from truenex_memory.adapters import write_agent_docs
12app = typer.Typer(help="Generate local agent adapter instruction files.")
15@app.command("generate")
16def generate(
17 directory: Annotated[Path, typer.Argument(help="Directory where files are written.")],
18 project_name: Annotated[str, typer.Option("--project-name")] = "Truenex Memory",
19 overwrite: Annotated[bool, typer.Option("--overwrite")] = False,
20) -> None:
21 """Generate AGENTS.md and CLAUDE.md."""
23 written = write_agent_docs(directory, project_name=project_name, overwrite=overwrite)
24 for name, path in written.items():
25 typer.echo(f"{name}: {path}")
28if __name__ == "__main__":
29 app()