@@ -522,12 +522,13 @@ def _build_legend() -> Panel:
522522 return Panel (legend , title = "Legend" , border_style = "dim" , padding = (0 , 1 ))
523523
524524
525- async def status (clusters : list [ str ] | None = None , show : str = "all" ) :
525+ async def status (table : str ) -> None :
526526 """Gets the status of available clusters.
527527 - Gives you an overview of the state of each cluster, and displays an overview of the state of your jobs across the clusters.
528528 - Displays the number of idle nodes, or the number of idle GPUs, or something similar, for each cluster
529529 """
530530 console = Console ()
531+ clusters = get_config ().clusters_names
531532 clusters = list (clusters or [])
532533
533534 if clusters :
@@ -559,10 +560,10 @@ async def status(clusters: list[str] | None = None, show: str = "all"):
559560 console .rule (f"[bold cyan]cluv status[/bold cyan] { label } " )
560561 console .print ()
561562
562- if show in ("clusters" , "all" ):
563+ if table in ("clusters" , "all" ):
563564 console .print (_build_cluster_table (data ))
564565 console .print (_build_legend ())
565566 console .print ()
566- if show in ("jobs" , "all" ):
567+ if table in ("jobs" , "all" ):
567568 console .print (_build_my_jobs_table (data ))
568569 console .print ()
0 commit comments