Skip to content
Snippets Groups Projects
Commit 251791b6 authored by Florian Bruhin's avatar Florian Bruhin
Browse files

Create typer app object

parent 22aaebce
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ typer = "^0.6.1"
httpx = "^0.23.0"
[tool.poetry.scripts]
submit = 'taas_client.cli:run'
submit = 'taas_client.cli:app'
[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
......
......@@ -10,8 +10,10 @@ from rich.console import Console
from rich.panel import Panel
console = Console()
app = typer.Typer()
@app.command()
def upload_file(
notebook: Path = typer.Argument(
...,
......@@ -98,9 +100,5 @@ def upload_file(
)
def run():
typer.run(upload_file)
if __name__ == "__main__":
run()
app()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment