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

Method step

codewiki/cli/utils/logging.py:46–60  ·  view source on GitHub ↗

Log a processing step. Args: message: Step description step: Current step number total: Total number of steps

(self, message: str, step: Optional[int] = None, total: Optional[int] = None)

Source from the content-addressed store, hash-verified

44 click.secho(f"✗ {message}", fg="red", err=True)
45
46 def step(self, message: str, step: Optional[int] = None, total: Optional[int] = None):
47 """
48 Log a processing step.
49
50 Args:
51 message: Step description
52 step: Current step number
53 total: Total number of steps
54 """
55 if step is not None and total is not None:
56 prefix = f"[{step}/{total}]"
57 else:
58 prefix = "→"
59
60 click.secho(f"{prefix} {message}", fg="blue", bold=True)
61
62 def elapsed_time(self) -> str:
63 """Get elapsed time since logger was created."""

Callers 1

generate_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected