diff --git a/corrlib/cli.py b/corrlib/cli.py index b85aa4e..3f72bd6 100644 --- a/corrlib/cli.py +++ b/corrlib/cli.py @@ -5,6 +5,8 @@ from .initialization import create from .toml import import_toml, update_project from .find import find_record, find_project, list_projects from .tools import str2list +import os + app = typer.Typer() @@ -42,9 +44,13 @@ def list( List entities. (ensembles, projects) """ if entities in ['ensembles', 'Ensembles','ENSEMBLES']: - results = "List of ensembles" + print("Ensembles:") + for item in os.listdir(path + "/archive"): + if os.path.isdir(os.path.join(path + "/archive", item)): + print(item) elif entities == 'projects': results = list_projects(path) + print("Projects:") header = "UUID".ljust(37) + "| Names" print(header) for project in results: