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)
| 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.""" |
no outgoing calls
no test coverage detected