Files
Chromy/chromy/handlers/add_data.py
T

10 lines
272 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.utilities import ingest_file
2026-04-21 17:42:37 +02:00
def handle_add_data(args: Namespace) -> int:
records_added = ingest_file(args.collection, args.file)
print(f"Added {records_added} records to collection '{args.collection}'.")
return 0