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

Method _json_example

awscli/clidocs.py:546–558  ·  view source on GitHub ↗
(self, doc, argument_model, stack)

Source from the content-addressed store, hash-verified

544 return f'{argument_model.type_name}'
545
546 def _json_example(self, doc, argument_model, stack):
547 if argument_model.name in stack:
548 # Document the recursion once, otherwise just
549 # note the fact that it's recursive and return.
550 if stack.count(argument_model.name) > 1:
551 if argument_model.type_name == 'structure':
552 doc.write('{ ... recursive ... }')
553 return
554 stack.append(argument_model.name)
555 try:
556 self._do_json_example(doc, argument_model, stack)
557 finally:
558 stack.pop()
559
560 def _do_json_example(self, doc, argument_model, stack):
561 if argument_model.type_name == 'list':

Callers 3

_do_json_exampleMethod · 0.95
doc_option_exampleMethod · 0.95

Calls 2

_do_json_exampleMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected