From dbd622ed9d643c70eebce5264f8bd86b727b7bf0 Mon Sep 17 00:00:00 2001 From: bronsen Date: Sun, 28 Dec 2025 21:56:21 +0100 Subject: [PATCH] make it so that Textual can start the app --- justfile | 5 +++-- src/teilchensammler_cli/main.py | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 4ee9b47..bfc462d 100644 --- a/justfile +++ b/justfile @@ -8,12 +8,13 @@ setup: console: uv run textual console +the_app := "teilchensammler_cli.main" # run app with logs going to console run-dev: - uv run textual run --dev src/teilchensammler_cli/__init__.py + uv run textual run --dev {{ the_app }} run: - uv run python -m teilchensammler_cli.main + uv run python -m {{ the_app }} uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project" exports-deps: diff --git a/src/teilchensammler_cli/main.py b/src/teilchensammler_cli/main.py index 8c789cb..f57ace4 100644 --- a/src/teilchensammler_cli/main.py +++ b/src/teilchensammler_cli/main.py @@ -39,8 +39,11 @@ def try_this(): print(f"{db_teilchen=}") +app = SammlerApp() + + def main() -> None: - app = SammlerApp() + # app = SammlerApp() app.run()