simplify the app using typer

This commit is contained in:
Matteo Rosati
2026-04-22 22:14:26 +02:00
parent 2dfaa68466
commit b52952a2eb
17 changed files with 334 additions and 505 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
from __future__ import annotations
from chromy.chroma_functions import count_collection
from chromy.command_inputs import CountCollectionInput
def handle_count_collection(command: CountCollectionInput) -> int:
print(count_collection(command.collection))
def handle_count_collection(collection: str) -> int:
print(count_collection(collection))
return 0