make it so that Textual can start the app
This commit is contained in:
parent
173d23addf
commit
dbd622ed9d
2 changed files with 7 additions and 3 deletions
5
justfile
5
justfile
|
|
@ -8,12 +8,13 @@ setup:
|
||||||
console:
|
console:
|
||||||
uv run textual console
|
uv run textual console
|
||||||
|
|
||||||
|
the_app := "teilchensammler_cli.main"
|
||||||
# run app with logs going to console
|
# run app with logs going to console
|
||||||
run-dev:
|
run-dev:
|
||||||
uv run textual run --dev src/teilchensammler_cli/__init__.py
|
uv run textual run --dev {{ the_app }}
|
||||||
|
|
||||||
run:
|
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"
|
uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project"
|
||||||
exports-deps:
|
exports-deps:
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,11 @@ def try_this():
|
||||||
print(f"{db_teilchen=}")
|
print(f"{db_teilchen=}")
|
||||||
|
|
||||||
|
|
||||||
|
app = SammlerApp()
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
app = SammlerApp()
|
# app = SammlerApp()
|
||||||
app.run()
|
app.run()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue