decouple core data from CLI formatting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user