Verified Commit 819c3742 authored by Jakob Moser's avatar Jakob Moser
Browse files

Refactor code

Hopefully, it is now a bit cleaner and easier to understand
parent 72546ccf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ dependencies = [
]

[project.scripts]
coliverter = "coliverter:app"
coliverter = "coliverter:typer"

[project.urls]
Homepage = "https://gitlab.cl.uni-heidelberg.de/fachschaft/coliverter"
+1 −1
Original line number Diff line number Diff line
from coliverter.app import app
from coliverter.cli.typer import typer
from coliverter.convert import convert

src/coliverter/app.py

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
import typer

app = typer.Typer()
+6 −0
Original line number Diff line number Diff line
"""
Implementation specifics for the Coliverter's Command Line Interface (CLI).

This is basically empty, because thanks to the typer library, most of the CLI is autogenerated.
This package only contains the singleton `typer` instance we build our app upon.
"""
+3 −0
Original line number Diff line number Diff line
from typer import Typer

typer = Typer()
Loading