MCPcopy Index your code
hub / github.com/aws/aws-cli / get_instructions

Method get_instructions

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

Source from the content-addressed store, hash-verified

593 self._log_events_printer.toggle_formatting()
594
595 def get_instructions(self):
596 if self._log_events_printer.output_format == OutputFormat.JSON:
597 instructions = self.INSTRUCTIONS.format(
598 colorama.Fore.GREEN
599 + OutputFormat.JSON.value
600 + colorama.Style.RESET_ALL,
601 OutputFormat.PLAIN_TEXT.value,
602 )
603 else:
604 instructions = self.INSTRUCTIONS.format(
605 OutputFormat.JSON.value,
606 colorama.Fore.GREEN
607 + OutputFormat.PLAIN_TEXT.value
608 + colorama.Style.RESET_ALL,
609 )
610
611 if self._is_scroll_active:
612 instructions += " q: Scroll to latest"
613
614 return ANSI(instructions)
615
616 def handle_scrolling(self, is_scroll_active):
617 self._is_scroll_active = is_scroll_active

Callers 10

handle_scrollingMethod · 0.95
test_resetMethod · 0.80
test_any_key_bindingMethod · 0.80
test_t_key_bindingMethod · 0.80
test_get_instructionsMethod · 0.80
test_handle_scrollingMethod · 0.80
_Method · 0.80
_resetMethod · 0.80

Calls 1

formatMethod · 0.80

Tested by 6

test_resetMethod · 0.64
test_any_key_bindingMethod · 0.64
test_t_key_bindingMethod · 0.64
test_get_instructionsMethod · 0.64
test_handle_scrollingMethod · 0.64