MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / _format_progress

Function _format_progress

src/cocoindex_code/cli.py:138–146  ·  view source on GitHub ↗

Format an IndexingProgress snapshot as a human-readable string.

(progress: IndexingProgress)

Source from the content-addressed store, hash-verified

136
137
138def _format_progress(progress: IndexingProgress) -> str:
139 """Format an IndexingProgress snapshot as a human-readable string."""
140 return (
141 f"{progress.num_execution_starts} files listed"
142 f" | {progress.num_adds} added, {progress.num_deletes} deleted,"
143 f" {progress.num_reprocesses} reprocessed,"
144 f" {progress.num_unchanged} unchanged,"
145 f" error: {progress.num_errors}"
146 )
147
148
149def print_project_header(project_root: str) -> None:

Callers 3

print_index_statsFunction · 0.85
_on_progressFunction · 0.85
_on_progressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected