Stride support (#624)
This commit is contained in:
@@ -57,6 +57,7 @@ type ReportCmd struct {
|
||||
ovalDBURL string
|
||||
|
||||
toSlack bool
|
||||
toStride bool
|
||||
toHipChat bool
|
||||
toEMail bool
|
||||
toSyslog bool
|
||||
@@ -114,6 +115,7 @@ func (*ReportCmd) Usage() string {
|
||||
[-ignore-unfixed]
|
||||
[-to-email]
|
||||
[-to-slack]
|
||||
[-to-stride]
|
||||
[-to-hipchat]
|
||||
[-to-localfile]
|
||||
[-to-s3]
|
||||
@@ -265,6 +267,7 @@ func (p *ReportCmd) SetFlags(f *flag.FlagSet) {
|
||||
f.BoolVar(&p.gzip, "gzip", false, "gzip compression")
|
||||
|
||||
f.BoolVar(&p.toSlack, "to-slack", false, "Send report via Slack")
|
||||
f.BoolVar(&p.toStride, "to-stride", false, "Send report via Stride")
|
||||
f.BoolVar(&p.toHipChat, "to-hipchat", false, "Send report via hipchat")
|
||||
f.BoolVar(&p.toEMail, "to-email", false, "Send report via Email")
|
||||
f.BoolVar(&p.toSyslog, "to-syslog", false, "Send report via Syslog")
|
||||
@@ -331,6 +334,7 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}
|
||||
c.Conf.HTTPProxy = p.httpProxy
|
||||
|
||||
c.Conf.ToSlack = p.toSlack
|
||||
c.Conf.ToStride = p.toStride
|
||||
c.Conf.ToHipChat = p.toHipChat
|
||||
c.Conf.ToEmail = p.toEMail
|
||||
c.Conf.ToSyslog = p.toSyslog
|
||||
@@ -370,6 +374,10 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}
|
||||
reports = append(reports, report.SlackWriter{})
|
||||
}
|
||||
|
||||
if p.toStride {
|
||||
reports = append(reports, report.StrideWriter{})
|
||||
}
|
||||
|
||||
if p.toHipChat {
|
||||
reports = append(reports, report.HipChatWriter{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user