add summary to sync

This commit is contained in:
phernandez
2025-01-04 01:13:40 -06:00
parent ef43658db1
commit b5bdae7101
+11
View File
@@ -53,6 +53,10 @@ def display_sync_summary(docs: SyncReport, knowledge: SyncReport):
def display_detailed_sync_results(docs: SyncReport, knowledge: SyncReport):
"""Display detailed sync results with trees."""
if docs.total_changes == 0 and knowledge.total_changes == 0:
console.print("\n[green]Everything up to date[/green]")
return
console.print("\n[bold]Sync Results[/bold]")
if docs.total_changes > 0:
@@ -156,6 +160,13 @@ async def run_sync(verbose: bool = False):
@app.command()
def sync(
path: Optional[Path] = typer.Argument(
None,
help="Path to sync. Defaults to current project directory.",
exists=True,
dir_okay=True,
file_okay=False,
),
verbose: bool = typer.Option(
False,
"--verbose",