Files
Chromy/chromy/handlers/create_collection.py
T
Matteo Rosati a14edebafe
build / build (push) Successful in 12s
pytest / pytest (push) Successful in 29s
add colors!
2026-04-23 21:49:46 +02:00

11 lines
304 B
Python

from __future__ import annotations
from rich import print
from chromy.chroma_functions import create_collection
def handle_create_collection(collection: str) -> int:
collection_name = create_collection(collection)
print(f"[bold green]Created[/]: collection '{collection_name}'.")
return 0