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

Method _format_response

awscli/formatter.py:225–233  ·  view source on GitHub ↗
(self, command_name, response, stream)

Source from the content-addressed store, hash-verified

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):
227 try:
228 self.table.render(stream)
229 except OSError:
230 # If they're piping stdout to another process which exits
231 # before we're done writing all of our output, we'll get an
232 # error about a closed pipe which we can safely ignore.
233 pass
234
235 def _build_table(self, title, current, indent_level=0):
236 if not current:

Callers

nothing calls this directly

Calls 2

_build_tableMethod · 0.95
renderMethod · 0.45

Tested by

no test coverage detected