add colors!
build / build (push) Successful in 12s
pytest / pytest (push) Successful in 29s

This commit is contained in:
Matteo Rosati
2026-04-23 21:49:46 +02:00
parent 3fcc3904b4
commit a14edebafe
10 changed files with 24 additions and 12 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ from __future__ import annotations
import os
from pathlib import Path
from rich import print
from chromy.utilities import ingest_file
@@ -25,5 +26,6 @@ def _get_absolute_path(file: str) -> str:
def handle_import(collection: str, file: str) -> int:
records_added = ingest_file(collection, _get_absolute_path(file))
print(f"Added {records_added} records to collection '{collection}'.")
print(
f"[bold green]Added[/] {records_added} records to collection '{collection}'.")
return 0