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

Class ColorizedStyler

awscli/table.py:176–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176class ColorizedStyler(Styler):
177 def __init__(self):
178 colorama.init(**COLORAMA_KWARGS) # noqa
179
180 def style_title(self, text):
181 # Originally bold + underline
182 return text
183 # return colorama.Style.BOLD + text + colorama.Style.RESET_ALL
184
185 def style_header_column(self, text):
186 # Originally underline
187 return text
188
189 def style_row_element(self, text):
190 return (
191 colorama.Style.BRIGHT
192 + colorama.Fore.BLUE
193 + text
194 + colorama.Style.RESET_ALL
195 )
196
197 def style_indentation_char(self, text):
198 return (
199 colorama.Style.DIM
200 + colorama.Fore.YELLOW
201 + text
202 + colorama.Style.RESET_ALL
203 )
204
205
206class MultiTable:

Callers 2

__init__Method · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected