@@ -138,19 +138,28 @@ func Command() *cobra.Command {
138
138
}
139
139
if flagutils .IsSet (flags , "report-format" ) {
140
140
if configuration .Spec .Report == nil {
141
- configuration .Spec .Report = & v1alpha2.ReportOptions {}
141
+ configuration .Spec .Report = & v1alpha2.ReportOptions {
142
+ Format : v1alpha2 .JSONFormat ,
143
+ Name : "chainsaw-report" ,
144
+ }
142
145
}
143
146
configuration .Spec .Report .Format = v1alpha2 .ReportFormatType (options .reportFormat )
144
147
}
145
148
if flagutils .IsSet (flags , "report-path" ) {
146
149
if configuration .Spec .Report == nil {
147
- configuration .Spec .Report = & v1alpha2.ReportOptions {}
150
+ configuration .Spec .Report = & v1alpha2.ReportOptions {
151
+ Format : v1alpha2 .JSONFormat ,
152
+ Name : "chainsaw-report" ,
153
+ }
148
154
}
149
155
configuration .Spec .Report .Path = options .reportPath
150
156
}
151
157
if flagutils .IsSet (flags , "report-name" ) {
152
158
if configuration .Spec .Report == nil {
153
- configuration .Spec .Report = & v1alpha2.ReportOptions {}
159
+ configuration .Spec .Report = & v1alpha2.ReportOptions {
160
+ Format : v1alpha2 .JSONFormat ,
161
+ Name : "chainsaw-report" ,
162
+ }
154
163
}
155
164
configuration .Spec .Report .Name = options .reportName
156
165
}
0 commit comments