MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / update

Method update

codewiki/cli/utils/progress.py:201–215  ·  view source on GitHub ↗

Update progress for a module. Args: module_name: Name of the module cached: Whether the module was loaded from cache

(self, module_name: str, cached: bool = False)

Source from the content-addressed store, hash-verified

199 self.bar.__enter__()
200
201 def update(self, module_name: str, cached: bool = False):
202 """
203 Update progress for a module.
204
205 Args:
206 module_name: Name of the module
207 cached: Whether the module was loaded from cache
208 """
209 self.current_module += 1
210
211 if self.verbose:
212 status = "✓ (cached)" if cached else "⟳ (generating)"
213 click.echo(f" [{self.current_module}/{self.total_modules}] {module_name}... {status}")
214 elif self.bar:
215 self.bar.update(1)
216
217 def finish(self):
218 """Finish progress bar."""

Callers 2

_analyze_python_fileMethod · 0.80
_walkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected