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

Method write_rd

samcli/cli/formatters.py:59–73  ·  view source on GitHub ↗
(
        self,
        rows: Sequence[RowDefinition],
        col_max: int = 30,
        col_spacing: int = 2,
    )

Source from the content-addressed store, hash-verified

57 super().write_heading(style(heading, bold=True))
58
59 def write_rd(
60 self,
61 rows: Sequence[RowDefinition],
62 col_max: int = 30,
63 col_spacing: int = 2,
64 ) -> None:
65 modified_rows = []
66 for row in rows:
67 extra_row_modifiers = row.extra_row_modifiers or []
68 modified_row = row
69 for row_modifier in self.modifiers + extra_row_modifiers:
70 modified_row = row_modifier.apply(row=modified_row, justification_length=self.left_justification_length)
71 modified_rows.append((modified_row.name, modified_row.text))
72
73 super().write_dl(modified_rows, col_max=col_max, col_spacing=col_spacing)
74
75 def write_text_rows(
76 self,

Callers 15

format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_acronymsMethod · 0.45
format_tableMethod · 0.45
format_acronymsMethod · 0.45
format_commandsMethod · 0.45
format_sub_commandsMethod · 0.45

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected