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

Method __init__

awscli/formatter.py:206–223  ·  view source on GitHub ↗
(self, args, table=None)

Source from the content-addressed store, hash-verified

204 """
205
206 def __init__(self, args, table=None):
207 super(TableFormatter, self).__init__(args)
208 if args.color == 'auto':
209 self.table = MultiTable(
210 initial_section=False, column_separator='|'
211 )
212 elif args.color == 'off':
213 styler = Styler()
214 self.table = MultiTable(
215 initial_section=False, column_separator='|', styler=styler
216 )
217 elif args.color == 'on':
218 styler = ColorizedStyler()
219 self.table = MultiTable(
220 initial_section=False, column_separator='|', styler=styler
221 )
222 else:
223 raise ValueError("Unknown color option: %s" % args.color)
224
225 def _format_response(self, command_name, response, stream):
226 if self._build_table(command_name, response):

Callers

nothing calls this directly

Calls 4

MultiTableClass · 0.90
StylerClass · 0.90
ColorizedStylerClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected