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

Method output

src/ui/components/Display.ts:51–60  ·  view source on GitHub ↗

* 输出文本

(text: string, options: DisplayOptions = {})

Source from the content-addressed store, hash-verified

49 * 输出文本
50 */
51 private static output(text: string, options: DisplayOptions = {}): void {
52 const opts = { ...this.defaultOptions, ...options };
53 const formatted = this.formatText(text, opts);
54
55 if (opts.newline) {
56 console.log(formatted);
57 } else {
58 process.stdout.write(formatted);
59 }
60 }
61
62 /**
63 * 成功消息

Callers 14

successMethod · 0.95
errorMethod · 0.95
warningMethod · 0.95
infoMethod · 0.95
mutedMethod · 0.95
headerMethod · 0.95
sectionMethod · 0.95
keyValueMethod · 0.95
codeMethod · 0.95
quoteMethod · 0.95
separatorMethod · 0.95
textMethod · 0.95

Calls 2

formatTextMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected