MCPcopy Index your code
hub / github.com/google-gemini/gemini-cli / write

Method write

packages/cli/src/ui/utils/textOutput.ts:26–35  ·  view source on GitHub ↗

* Writes a string to stdout. * @param str The string to write.

(str: string)

Source from the content-addressed store, hash-verified

24 * @param str The string to write.
25 */
26 write(str: string): void {
27 if (str.length === 0) {
28 return;
29 }
30 this.outputStream.write(str);
31 const strippedStr = stripAnsi(str);
32 if (strippedStr.length > 0) {
33 this.atStartOfLine = strippedStr.endsWith('\n');
34 }
35 }
36
37 /**
38 * Writes a string to stdout, ensuring it starts on a new line.

Callers 15

runNonInteractiveFunction · 0.95
runNonInteractiveFunction · 0.95
writeOnNewLineMethod · 0.95
ensureTrailingNewlineMethod · 0.95
user_touches.tsFile · 0.45
latency.tsFile · 0.45
open_prs.tsFile · 0.45
open_issues.tsFile · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by 4

writeToTerminalFunction · 0.36
pressKeyFunction · 0.36
requestFunction · 0.36