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

Method _create_bottom_toolbar

awscli/customizations/logs/ui.py:561–584  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

559 return self._prompt_buffer_control
560
561 def _create_bottom_toolbar(self):
562 self._quit_button = FormattedTextControl(self.EXIT_SESSION)
563 self._bottom_toolbar = FormattedTextControl(self.get_instructions())
564
565 return HSplit(
566 [
567 Window(
568 self._bottom_toolbar,
569 wrap_lines=True,
570 dont_extend_height=True,
571 height=Dimension(min=1),
572 char=" ",
573 style="class:bottom-toolbar.text",
574 ),
575 Window(
576 self._quit_button,
577 wrap_lines=True,
578 dont_extend_height=True,
579 height=Dimension(min=1),
580 style="class:bottom-toolbar.text",
581 align=WindowAlign.RIGHT,
582 ),
583 ]
584 )
585
586 def update_bottom_toolbar(self, new_text):
587 self._bottom_toolbar.text = new_text

Callers 1

_create_uiMethod · 0.95

Calls 1

get_instructionsMethod · 0.95

Tested by

no test coverage detected