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

Method get_string_to_print

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

Source from the content-addressed store, hash-verified

124 return colorama.Fore.YELLOW
125
126 def get_string_to_print(self):
127 text_to_print = self._text
128 if len(self._text) > 15:
129 text_to_print = self._text[:10] + "..."
130 return (
131 self._color
132 + text_to_print
133 + colorama.Style.RESET_ALL
134 + ": "
135 + str(self._occurrence_count)
136 )
137
138 def _add_color_to_string(self, log_event: str, start, end):
139 string_to_replace = log_event[start:end]

Callers 2

test_string_to_printMethod · 0.80
update_metadataMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_string_to_printMethod · 0.64