change "main.py" into "__init__.py"

and adapted imports accordingly
This commit is contained in:
stev 2023-09-11 22:25:37 +02:00
parent aab9cfff0b
commit 7fe3e6d434
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "Gmirator"
name = "gmirator"
version = "0.0.1"
authors = [
{ name="Steven GIBONE", email="steven.gibone@zaclys.net" },

View file

@ -1,14 +1,14 @@
import typer
import generate
import synchronise
import gmirator.generate
import gmirator.synchronise
app = typer.Typer(
add_completion=False,
help="gmirator helps you publish in both gmi and html"
)
app.add_typer(generate.app, name='gen')
app.add_typer(synchronise.app, name='sync')
app.add_typer(gmirator.generate.app, name='gen')
app.add_typer(gmirator.synchronise.app, name='sync')
if __name__ == "__main__":
app()