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

Method format_description

samcli/commands/docs/core/command.py:39–57  ·  view source on GitHub ↗

Formats the description of the help text for the docs command. Parameters ---------- formatter: DocsCommandHelpTextFormatter A formatter instance to use for formatting the help text

(formatter: DocsCommandHelpTextFormatter)

Source from the content-addressed store, hash-verified

37
38 @staticmethod
39 def format_description(formatter: DocsCommandHelpTextFormatter):
40 """
41 Formats the description of the help text for the docs command.
42
43 Parameters
44 ----------
45 formatter: DocsCommandHelpTextFormatter
46 A formatter instance to use for formatting the help text
47 """
48 with formatter.indented_section(name="Description", extra_indents=1):
49 formatter.write_text_rows(
50 [
51 RowDefinition(
52 text="",
53 name=DESCRIPTION
54 + style(f"{os.linesep} This command does not require access to AWS credentials.", bold=True),
55 ),
56 ],
57 )
58
59 def format_sub_commands(self, formatter: DocsCommandHelpTextFormatter):
60 """

Callers 15

format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45
format_optionsMethod · 0.45

Calls 3

RowDefinitionClass · 0.90
indented_sectionMethod · 0.45
write_text_rowsMethod · 0.45

Tested by

no test coverage detected