Skip to content

Commit

Permalink
update review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed May 28, 2024
1 parent 5c79e01 commit 83056f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test:

.PHONY: build
build:
go build -o trivy-aws ./cmd/trivy-aws/main.go
CGO_ENABLED=0 go build -ldflags "-s -w" -o trivy-aws ./cmd/trivy-aws/main.go

.PHONY: test-no-localstack
test-no-localstack:
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewCmd() *cobra.Command {
sort.Strings(services)

cmd := &cobra.Command{
Use: "aws [flags]",
Use: "aws-scan [flags]",
Aliases: []string{},
Args: cobra.ExactArgs(0),
Short: "[EXPERIMENTAL] Scan AWS account",
Expand All @@ -49,16 +49,16 @@ The following services are supported:
- %s
`, strings.Join(services, "\n- ")),
Example: ` # basic scanning
$ trivy aws --region us-east-1
$ trivy aws-scan --region us-east-1
# limit scan to a single service:
$ trivy aws --region us-east-1 --service s3
$ trivy aws-scan --region us-east-1 --service s3
# limit scan to multiple services:
$ trivy aws --region us-east-1 --service s3 --service ec2
$ trivy aws-scan --region us-east-1 --service s3 --service ec2
# force refresh of cache for fresh results
$ trivy aws --region us-east-1 --update-cache
$ trivy aws-scan --region us-east-1 --update-cache
`,
PreRunE: func(cmd *cobra.Command, args []string) error {
if err := awsFlags.Bind(cmd); err != nil {
Expand Down

0 comments on commit 83056f4

Please sign in to comment.