5050
5151def check_infrahub_ready (max_retries : int = 30 , sleep_time : int = 2 ) -> bool :
5252 """Check if Infrahub is ready to accept requests."""
53- console .print (" \n [bold cyan]→ Checking if Infrahub is ready...[/bold cyan]" )
53+ console .print () # Add blank line for spacing
5454
5555 with Progress (
5656 SpinnerColumn (spinner_name = "dots12" , style = "bold bright_magenta" ),
@@ -67,7 +67,7 @@ def check_infrahub_ready(max_retries: int = 30, sleep_time: int = 2) -> bool:
6767 TimeElapsedColumn (),
6868 console = console ,
6969 ) as progress :
70- task = progress .add_task ("⏳ Waiting for Infrahub" , total = max_retries )
70+ task = progress .add_task ("→ Checking if Infrahub is ready " , total = max_retries )
7171
7272 for attempt in range (max_retries ):
7373 try :
@@ -120,7 +120,7 @@ def run_command(command: str, description: str, step: str, color: str = "cyan",
120120
121121def wait_for_repository_sync (seconds : int = 120 ) -> None :
122122 """Wait for repository synchronization with progress bar."""
123- console .print (f" \n [bold yellow]⏳ Waiting for repository sync ( { seconds } seconds)...[/bold yellow]" )
123+ console .print () # Add blank line for spacing
124124
125125 with Progress (
126126 SpinnerColumn (spinner_name = "dots12" , style = "bold bright_yellow" ),
@@ -139,7 +139,7 @@ def wait_for_repository_sync(seconds: int = 120) -> None:
139139 TimeRemainingColumn (),
140140 console = console ,
141141 ) as progress :
142- task = progress .add_task ("🔄 Syncing repository" , total = seconds )
142+ task = progress .add_task (f"⏳ Waiting for repository sync ( { seconds } s) " , total = seconds )
143143
144144 for _ in range (seconds ):
145145 time .sleep (1 )
0 commit comments