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 create_collection
|
2026-04-21 17:42:37 +02:00
|
|
|
|
|
|
|
|
|
2026-04-22 22:14:26 +02:00
|
|
|
def handle_create_collection(collection: str) -> int:
|
|
|
|
|
collection_name = create_collection(collection)
|
2026-04-23 21:49:46 +02:00
|
|
|
print(f"[bold green]Created[/]: collection '{collection_name}'.")
|
2026-04-21 17:42:37 +02:00
|
|
|
return 0
|