2026-04-22 16:03:51 +02:00
|
|
|
from __future__ import annotations
|
2026-04-21 17:42:37 +02:00
|
|
|
|
2026-04-22 15:47:46 +02:00
|
|
|
from chromy.chroma_functions import count_collection
|
2026-04-22 16:03:51 +02:00
|
|
|
from chromy.command_inputs import CountCollectionInput
|
2026-04-21 17:42:37 +02:00
|
|
|
|
|
|
|
|
|
2026-04-22 16:03:51 +02:00
|
|
|
def handle_count_collection(command: CountCollectionInput) -> int:
|
|
|
|
|
print(count_collection(command.collection))
|
2026-04-21 17:42:37 +02:00
|
|
|
return 0
|