MCPcopy
hub / github.com/jtesta/ssh-audit / get_buffer

Method get_buffer

src/ssh_audit/outputbuffer.py:83–89  ·  view source on GitHub ↗

Returns all buffered output, then clears the buffer.

(self)

Source from the content-addressed store, hash-verified

81 print(s)
82
83 def get_buffer(self) -> str:
84 '''Returns all buffered output, then clears the buffer.'''
85 self.flush_section()
86
87 buffer_str = "\n".join(self.buffer)
88 self.buffer = []
89 return buffer_str
90
91 def write(self) -> None:
92 '''Writes the output to stdout.'''

Callers 3

writeMethod · 0.95
resetMethod · 0.95
target_worker_threadFunction · 0.95

Calls 1

flush_sectionMethod · 0.95

Tested by

no test coverage detected