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

Method indented_section

samcli/cli/formatters.py:106–114  ·  view source on GitHub ↗
(self, name: str, extra_indents: int = 0)

Source from the content-addressed store, hash-verified

104
105 @contextmanager
106 def indented_section(self, name: str, extra_indents: int = 0) -> Iterator[None]:
107 with super().section(style(name, bold=True, underline=True)):
108 for _ in range(extra_indents):
109 self.indent()
110 try:
111 yield
112 finally:
113 for _ in range(extra_indents):
114 self.dedent()

Callers 15

format_examplesMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45
format_examplesMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45
format_examplesMethod · 0.45
format_acronymsMethod · 0.45

Calls 1

sectionMethod · 0.45

Tested by

no test coverage detected