MCPcopy Create free account
hub / github.com/echoVic/blade-code / step

Method step

src/ui/components/Progress.ts:49–56  ·  view source on GitHub ↗

* 显示步骤进度

(current: number, total: number, message: string)

Source from the content-addressed store, hash-verified

47 * 显示步骤进度
48 */
49 public static step(current: number, total: number, message: string): void {
50 const percentage = Math.round((current / total) * 100);
51 const progress = this.createProgressBar(percentage, 30);
52
53 UIDisplay.text(
54 `${UIStyles.status.info(`[${current}/${total}]`)} ${progress} ${percentage}% - ${message}`
55 );
56 }
57
58 /**
59 * 显示带时间的进度

Callers

nothing calls this directly

Calls 3

createProgressBarMethod · 0.95
textMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected