Skip to content

Commit

Permalink
icm ls: Print a message if no collections installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Jun 19, 2024
1 parent 318ef41 commit eac9fbd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions icm/commands/cmd_ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def main():
# -- Sort the list of collections
list_col.sort()

# -- Print all the available collections
for colection in list_col:
click.secho(f"• {colection}", fg="blue")
# -- List not empty: Print it!
if list_col:
# -- Print all the available collections
for colection in list_col:
click.secho(f"• {colection}", fg="blue")

else:
print("No installed collections")

0 comments on commit eac9fbd

Please sign in to comment.