initial MVP

This commit is contained in:
Mikan
2025-12-08 16:57:25 +03:00
commit 848eb462b5
20 changed files with 398 additions and 0 deletions

16
src/__main__.py Normal file
View File

@@ -0,0 +1,16 @@
import typer
from pathlib import Path
from .core.converter import process_document
app = typer.Typer()
@app.command()
def convert(
input_dir: Path = typer.Option(..., "--input", "-i", help="Папка с исходниками"),
output_dir: Path = typer.Option(..., "--output", "-o", help="Папка для результата"),
style_config: Path = typer.Option("resources/style_config.yaml", "--style", "-s", help="Файл стилей")
):
process_document(input_dir, output_dir, style_config)
if __name__ == "__main__":
app()