Verified Commit 9e93fe6d authored by Jakob Moser's avatar Jakob Moser
Browse files

Add basic main structure

parent b51be0be
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
from pathlib import Path
from typing import Annotated

import typer

app = typer.Typer()


@app.command()
def main() -> None:
    print("Hello World!")
def main(
    markdown_path: Annotated[
        Path | None,
        typer.Argument(
            help="Path to the input Markdown file. If None, read Markdown from STDIN."
        ),
    ] = None,
    output_path: Annotated[
        Path | None,
        typer.Argument(
            help="Path to the output file. If None, write output to STDOUT."
        ),
    ] = None,
) -> None:
    """
    Convert Markdown files into other formats, using the organization identity of Fachschaft Computerlinguistik.
    """
    # TODO Implement this
    print(markdown_path, output_path)