Fix export-only mode: don't show component results

This commit is contained in:
Mario Lavoie
2026-01-28 02:27:12 +00:00
parent da8526772b
commit fb2db882ba

View File

@@ -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]")