Documentation / @zerotal/core / index / BufferWriter
Class: BufferWriter
Defined in: command/OutputWriter.ts:37
Capturing writer — output is stored in memory. Used by Artisan.call() so the caller receives the command's output as a string rather than it being written to the server terminal.
Implements
Constructors
Constructor
new BufferWriter():
BufferWriter
Defined in: command/OutputWriter.ts:41
Returns
BufferWriter
Methods
write()
write(
message):void
Defined in: command/OutputWriter.ts:45
Parameters
message
string
Returns
void
Implementation of
writeLine()
writeLine(
message):void
Defined in: command/OutputWriter.ts:48
Parameters
message
string
Returns
void
Implementation of
writeError()
writeError(
message):void
Defined in: command/OutputWriter.ts:51
Parameters
message
string
Returns
void
Implementation of
flush()
flush():
string
Defined in: command/OutputWriter.ts:56
Return all captured output as a single string and clear the buffer.
Returns
string