Fix export-only mode: don't show component results
This commit is contained in:
@@ -136,15 +136,16 @@ def process(project_path: Path, process_all: bool, export_only: bool):
|
||||
title="Results"
|
||||
))
|
||||
|
||||
if results['new_components']:
|
||||
console.print("\n[bold]New components:[/bold]")
|
||||
for name in results['new_components']:
|
||||
console.print(f" [green]+[/green] {name}")
|
||||
|
||||
if results['updated_components']:
|
||||
console.print("\n[bold]Updated components:[/bold]")
|
||||
for name in results['updated_components']:
|
||||
console.print(f" [yellow]~[/yellow] {name}")
|
||||
if not export_only:
|
||||
if results.get('new_components'):
|
||||
console.print("\n[bold]New components:[/bold]")
|
||||
for name in results['new_components']:
|
||||
console.print(f" [green]+[/green] {name}")
|
||||
|
||||
if results.get('updated_components'):
|
||||
console.print("\n[bold]Updated components:[/bold]")
|
||||
for name in results['updated_components']:
|
||||
console.print(f" [yellow]~[/yellow] {name}")
|
||||
|
||||
if results['errors']:
|
||||
console.print("\n[bold red]Errors:[/bold red]")
|
||||
|
||||
Reference in New Issue
Block a user