Skip to content

Commit

Permalink
fix: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram-mv committed Jul 3, 2023
1 parent f44c16f commit 8c9dcb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions samcli/cli/root/command_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"validate": "Validate an AWS SAM template.",
"build": "Build your AWS serverless function code.",
"local": "Run your AWS serverless function locally.",
"remote": "Invoke or send an event to cloud resources in your CFN stack",
"remote": "Invoke or send an event to cloud resources in your AWS Cloudformation stack.",
"package": "Package an AWS SAM application.",
"deploy": "Deploy an AWS SAM application.",
"delete": "Delete an AWS SAM application and the artifacts created by sam deploy.",
"logs": "Fetch AWS Cloudwatch logs for a function.",
"logs": "Fetch AWS Cloudwatch logs for AWS Lambda Functions or Cloudwatch Log groups.",
"publish": "Publish a packaged AWS SAM template to AWS Serverless Application Repository for easy sharing.",
"traces": "Fetch AWS X-Ray traces.",
"sync": "Sync an AWS SAM project to AWS.",
Expand Down
6 changes: 4 additions & 2 deletions samcli/commands/logs/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@

LOG = logging.getLogger(__name__)

SHORT_HELP = "Fetch logs for your AWS SAM Application."
SHORT_HELP = (
"Fetch logs for your AWS SAM Application or AWS Cloudformation stack - Lambda Functions/CloudWatch Log groups"
)

HELP_TEXT = """
The sam logs commands fetches logs of Lambda Functions/CloudWatch log groups
with additional filtering by options.
"""

DESCRIPTION = """
Fetch logs generated by Lambda functions or other Cloudwatch log groups with additional filtering."
Fetch logs generated by Lambda functions or other Cloudwatch log groups with additional filtering.
"""


Expand Down
3 changes: 1 addition & 2 deletions samcli/commands/logs/core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def format_examples(ctx: Context, formatter: LogsCommandHelpTextFormatter):
text="\n",
),
RowDefinition(
name=style(f"$ {ctx.command_path} -n HelloWorldFunction --stack-name "
f"mystack --tail"),
name=style(f"$ {ctx.command_path} -n HelloWorldFunction --stack-name " f"mystack --tail"),
extra_row_modifiers=[ShowcaseRowModifier()],
),
]
Expand Down

0 comments on commit 8c9dcb1

Please sign in to comment.