()
| 39 | } |
| 40 | |
| 41 | func NewValidateCmd() *cobra.Command { |
| 42 | validateCmd := &cobra.Command{ |
| 43 | Use: "validate", |
| 44 | Short: "Validate conformance with the provided policies", |
| 45 | } |
| 46 | validateCmd.PersistentFlags().Bool("show-successes", false, "") |
| 47 | validateCmd.PersistentFlags().Bool("show-warnings", true, "") |
| 48 | validateCmd.PersistentFlags().Bool("show-policy-docs-link", false, "Show link to policy documentation in output when there are violations or warnings") |
| 49 | return validateCmd |
| 50 | } |
no outgoing calls