1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-15 17:50:58 +00:00
policy-reporter/cmd/send.go
Frank Jogeleit f3b980bfd3
Implement MetadataClient (#257)
* Implement MetadataClient

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-08 15:53:59 +01:00

27 lines
647 B
Go

package cmd
import (
"flag"
"github.com/spf13/cobra"
"github.com/kyverno/policy-reporter/cmd/send"
)
func newSendCMD() *cobra.Command {
cmd := &cobra.Command{
Use: "send",
Short: "Send different kinds of email reports",
}
// For local usage
cmd.PersistentFlags().StringP("kubeconfig", "k", "", "absolute path to the kubeconfig file")
cmd.PersistentFlags().StringP("config", "c", "", "target configuration file")
cmd.PersistentFlags().StringP("template-dir", "t", "./templates", "template directory for email reports")
cmd.AddCommand(send.NewSummaryCMD())
cmd.AddCommand(send.NewViolationsCMD())
flag.Parse()
return cmd
}