From 83056f4e305bfebc7a12daa5518ec14ce6d3881f Mon Sep 17 00:00:00 2001 From: Simar Date: Wed, 22 May 2024 18:47:56 -0600 Subject: [PATCH] update review comments --- Makefile | 2 +- pkg/commands/app.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 78e07f0..dd44a16 100755 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/pkg/commands/app.go b/pkg/commands/app.go index f54c6ee..12a8649 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -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", @@ -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 {