Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 update descriptions for help command #54

Merged
merged 1 commit into from
Oct 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ This example connects to Microsoft 365 using the PKCS #12 formatted certificate:
cmd.Flags().StringToString("option", nil, "addition connection options, multiple options can be passed in via --option key=value")
cmd.Flags().String("discover", "", "enable the discovery of nested assets. Supported are 'all|instances|host-instances|host-machines|container|container-images|pods|cronjobs|statefulsets|deployments|jobs|replicasets|daemonsets'")
cmd.Flags().StringToString("discover-filter", nil, "additional filter for asset discovery")
cmd.Flags().StringToString("label", nil, "label for asset") // used by mondoo, hidden to the user so we can still apply labels when needed (e.g. ssm scans)
cmd.Flags().StringToString("annotation", nil, "annotation for asset") // user-added, editable
cmd.Flags().MarkDeprecated("label", "please use --annotation instead")
cmd.Flags().StringToString("annotation", nil, "add an annotation to the asset") // user-added, editable

// global asset flags
cmd.Flags().Bool("insecure", false, "disable TLS/SSL checks or SSH hostkey config")
Expand All @@ -300,7 +298,7 @@ This example connects to Microsoft 365 using the PKCS #12 formatted certificate:
cmd.Flags().MarkHidden("record")

// v6 should make detect-cicd and category flag public, default for "detect-cicd" should switch to true
cmd.Flags().Bool("detect-cicd", true, "tries to detect CI/CD environments and sets the asset category to 'cicd' if detected")
cmd.Flags().Bool("detect-cicd", true, "attempt to detect CI/CD environments and sets the asset category to 'cicd' if detected")
cmd.Flags().String("category", "fleet", "sets the category for the assets 'fleet|cicd'")
cmd.Flags().MarkHidden("category")

Expand Down