From dc57c9dfa53cd903252e5f81809b5b9a6e6980be Mon Sep 17 00:00:00 2001 From: Dalena Date: Fri, 1 Nov 2024 10:15:22 -0500 Subject: [PATCH] feat: add cluster status to cluster list --- silverback/_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/silverback/_cli.py b/silverback/_cli.py index 725d3d2d..ba907b33 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -323,7 +323,9 @@ def list_clusters(platform: PlatformClient, workspace: str): raise click.BadOptionUsage("workspace", f"Unknown workspace '{workspace}'") if cluster_names := list(workspace_client.clusters): - click.echo(yaml.safe_dump(cluster_names)) + for name in cluster_names: + cluster = workspace_client.clusters.get(name) + click.echo(f"- {name} ({cluster.status})") else: click.secho("No clusters for this account", bold=True, fg="red")