in samcli/commands/package/core/command.py [0:0]
def format_examples(ctx: Context, formatter: PackageCommandHelpTextFormatter):
with formatter.indented_section(name="Examples", extra_indents=1):
with formatter.indented_section(name="Automatic resolution of S3 buckets", extra_indents=1):
formatter.write_rd(
[
RowDefinition(
text="\n",
),
RowDefinition(
name=style(f"$ {ctx.command_path} --resolve-s3"),
extra_row_modifiers=[ShowcaseRowModifier()],
),
],
col_max=COL_SIZE_MODIFIER,
)
with formatter.indented_section(name="Get packaged template", extra_indents=1):
formatter.write_rd(
[
RowDefinition(
text="\n",
),
RowDefinition(
name=style(f"$ {ctx.command_path} --resolve-s3 --output-template-file packaged.yaml"),
extra_row_modifiers=[ShowcaseRowModifier()],
),
],
col_max=COL_SIZE_MODIFIER,
)
with formatter.indented_section(name="Customized location for uploading artifacts", extra_indents=1):
formatter.write_rd(
[
RowDefinition(
text="\n",
),
RowDefinition(
name=style(
f"$ {ctx.command_path} --s3-bucket S3_BUCKET --output-template-file packaged.yaml"
),
extra_row_modifiers=[ShowcaseRowModifier()],
),
],
col_max=COL_SIZE_MODIFIER,
)