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

Method document_output

awscli/botocore/docs/sharedexample.py:59–74  ·  view source on GitHub ↗
(self, section, example, shape)

Source from the content-addressed store, hash-verified

57 closing_section.style.end_codeblock()
58
59 def document_output(self, section, example, shape):
60 output_section = section.add_new_section('output')
61 output_section.style.new_line()
62 output_section.write('Expected Output:')
63 output_section.style.new_line()
64 output_section.style.start_codeblock()
65 params = example.get('output', {})
66
67 # There might not be an output, but we will return metadata anyway
68 params['ResponseMetadata'] = {"...": "..."}
69 comments = example.get('comments')
70 if comments:
71 comments = comments.get('output')
72 self._document_dict(output_section, params, comments, [], shape, True)
73 closing_section = output_section.add_new_section('output-close')
74 closing_section.style.end_codeblock()
75
76 def _document(self, section, value, comments, path, shape):
77 """

Callers 1

Calls 6

_document_dictMethod · 0.95
add_new_sectionMethod · 0.45
new_lineMethod · 0.45
writeMethod · 0.45
start_codeblockMethod · 0.45
end_codeblockMethod · 0.45

Tested by

no test coverage detected