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"
|
title="Results"
|
||||||
))
|
))
|
||||||
|
|
||||||
if results['new_components']:
|
if not export_only:
|
||||||
console.print("\n[bold]New components:[/bold]")
|
if results.get('new_components'):
|
||||||
for name in results['new_components']:
|
console.print("\n[bold]New components:[/bold]")
|
||||||
console.print(f" [green]+[/green] {name}")
|
for name in results['new_components']:
|
||||||
|
console.print(f" [green]+[/green] {name}")
|
||||||
|
|
||||||
if results['updated_components']:
|
if results.get('updated_components'):
|
||||||
console.print("\n[bold]Updated components:[/bold]")
|
console.print("\n[bold]Updated components:[/bold]")
|
||||||
for name in results['updated_components']:
|
for name in results['updated_components']:
|
||||||
console.print(f" [yellow]~[/yellow] {name}")
|
console.print(f" [yellow]~[/yellow] {name}")
|
||||||
|
|
||||||
if results['errors']:
|
if results['errors']:
|
||||||
console.print("\n[bold red]Errors:[/bold red]")
|
console.print("\n[bold red]Errors:[/bold red]")
|
||||||
|
|||||||
Reference in New Issue
Block a user