File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -462,8 +462,17 @@ def scan(
462462
463463 if format == "table" and not quiet :
464464 console .print (f"[dim]Parallel scanning with { workers } workers[/dim]" )
465-
466- components = run_scanners_parallel (scanners , scan_path , workers = workers )
465+ with Progress (
466+ SpinnerColumn (),
467+ TextColumn ("[progress.description]{task.description}" ),
468+ console = console ,
469+ transient = True ,
470+ ) as progress :
471+ task = progress .add_task ("Scanning..." , total = None )
472+ components = run_scanners_parallel (scanners , scan_path , workers = workers )
473+ progress .update (task , completed = True )
474+ else :
475+ components = run_scanners_parallel (scanners , scan_path , workers = workers )
467476 for comp in components :
468477 comp .risk = score_component (comp )
469478 result .components .extend (components )
You can’t perform that action at this time.
0 commit comments