MCPcopy Create free account
hub / github.com/aws/aws-cli / LiveTailBuffer

Class LiveTailBuffer

awscli/customizations/logs/ui.py:384–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383
384class LiveTailBuffer(Buffer):
385 def __init__(self):
386 super().__init__()
387 self._pause_buffer = Buffer()
388
389 @property
390 def pause_buffer(self):
391 return self._pause_buffer
392
393 def add_text(self, data: str) -> bool:
394 if not get_app().layout.has_focus(self):
395 self.text += data
396 self.cursor_position = len(self.text)
397 else:
398 self._pause_buffer.text += data
399
400
401class InteractivePrinter(BaseLiveTailPrinter):

Callers 3

setUpMethod · 0.90
setUpMethod · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by 2

setUpMethod · 0.72
setUpMethod · 0.72