17 lines
332 B
Python
17 lines
332 B
Python
from __future__ import annotations
|
|
|
|
from chromy.chroma_functions import list_collections
|
|
from chromy.utilities import print_lines
|
|
|
|
|
|
def handle_list_collections() -> int:
|
|
collections = list_collections()
|
|
|
|
if not collections:
|
|
print("No collections found.")
|
|
return 0
|
|
|
|
print_lines(collections)
|
|
|
|
return 0
|