feat: initial commit
This commit is contained in:
commit
6bfef61ecc
31 changed files with 1864 additions and 0 deletions
23
main.py
Normal file
23
main.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
||||
from src.cv_generator.generator import generate_pdf
|
||||
|
||||
app = typer.Typer()
|
||||
|
||||
|
||||
@app.command()
|
||||
def generate(
|
||||
input_file: Path = typer.Argument(help="Markdown file with YAML frontmatter"), # pyright: ignore[reportCallInDefaultInitializer]
|
||||
output_file: Path | None = typer.Option( # pyright: ignore[reportCallInDefaultInitializer]
|
||||
None, "--output", "-o", help="Output PDF path"
|
||||
),
|
||||
) -> None:
|
||||
"""Generate a PDF CV from a Markdown file with YAML frontmatter."""
|
||||
result = generate_pdf(input_file, output_file)
|
||||
typer.echo(f"Generated {result}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app()
|
||||
Loading…
Add table
Add a link
Reference in a new issue