File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,8 @@ def handle_interactive_install():
4242 if component in INSTALL_MAP :
4343 ui .display_step (i , total_tasks , f"Installing { component } ..." )
4444
45- progress_bar = ui .ProgressBar (100 , prefix = f"{ component .capitalize ()} : " )
46- INSTALL_MAP [component ]()
47- for j in range (101 ):
48- time .sleep (0.01 )
49- progress_bar .update (j )
45+ progress_bar = ui .ProgressBar (1 , prefix = f"{ component .capitalize ()} : " )
46+ INSTALL_MAP [component ](progress_bar = progress_bar )
5047 progress_bar .finish ()
5148
5249 ui .display_success ("\n ✅ Interactive installation complete!" )
@@ -91,6 +88,7 @@ def handle_interactive_uninstall():
9188 if component in UNINSTALL_MAP :
9289 ui .display_step (i , total_tasks , f"Uninstalling { component } ..." )
9390
91+ # Uninstall progress is not easy to track, so we keep the simulation here
9492 progress_bar = ui .ProgressBar (100 , prefix = f"{ component .capitalize ()} : " )
9593 UNINSTALL_MAP [component ]()
9694 for j in range (101 ):
You can’t perform that action at this time.
0 commit comments