2026-04-22 16:03:51 +02:00
|
|
|
from __future__ import annotations
|
2026-04-21 17:42:37 +02:00
|
|
|
|
2026-04-23 21:49:46 +02:00
|
|
|
from rich import print
|
2026-04-24 18:23:02 +02:00
|
|
|
|
2026-04-22 15:47:46 +02:00
|
|
|
from chromy.chroma_functions import count_collection
|
2026-04-29 12:44:28 +02:00
|
|
|
from chromy.output import format_count_message
|
2026-04-21 17:42:37 +02:00
|
|
|
|
|
|
|
|
|
2026-04-22 22:14:26 +02:00
|
|
|
def handle_count_collection(collection: str) -> int:
|
2026-04-29 12:44:28 +02:00
|
|
|
print(format_count_message(collection, count_collection(collection)))
|
2026-04-21 17:42:37 +02:00
|
|
|
return 0
|