decouple core data from CLI formatting
build / build (push) Successful in 49s
pytest / pytest (push) Successful in 30s

This commit is contained in:
Matteo Rosati
2026-04-29 12:44:28 +02:00
parent 615ab14a1a
commit d1b1238897
12 changed files with 142 additions and 87 deletions
+2 -1
View File
@@ -3,8 +3,9 @@ from __future__ import annotations
from rich import print
from chromy.chroma_functions import count_collection
from chromy.output import format_count_message
def handle_count_collection(collection: str) -> int:
print(count_collection(collection))
print(format_count_message(collection, count_collection(collection)))
return 0