Files
Chromy/chromy/handlers/create_collection.py
T

10 lines
266 B
Python
Raw Normal View History

2026-04-21 17:42:37 +02:00
from argparse import Namespace
2026-04-22 15:47:46 +02:00
from chromy.chroma_functions import create_collection
2026-04-21 17:42:37 +02:00
def handle_create_collection(args: Namespace) -> int:
collection_name = create_collection(args.collection)
print(f"Created collection '{collection_name}'.")
return 0