@@ -21,6 +21,7 @@ type Settings struct {
2121 TrackUserLatency bool `json:"trackUserLatency"`
2222 Prewarm bool `json:"prewarm"`
2323 RampUp bool `json:"rampUp"`
24+ ReportPath string `json:"reportPath"`
2425}
2526
2627// DefaultSettings returns the default configuration values
@@ -37,6 +38,7 @@ func DefaultSettings() Settings {
3738 TrackUserLatency : false ,
3839 Prewarm : false ,
3940 RampUp : false ,
41+ ReportPath : "" ,
4042 }
4143}
4244
@@ -55,6 +57,7 @@ func InitializeViper(cmd *cobra.Command) error {
5557 "trackUserLatency" : "track-user-latency" ,
5658 "workers" : "workers" ,
5759 "rampUp" : "ramp-up" ,
60+ "reportPath" : "report-path" ,
5861 }
5962
6063 for viperKey , flagName := range flagBindings {
@@ -76,6 +79,7 @@ func InitializeViper(cmd *cobra.Command) error {
7679 viper .SetDefault ("trackUserLatency" , defaults .TrackUserLatency )
7780 viper .SetDefault ("workers" , defaults .Workers )
7881 viper .SetDefault ("rampUp" , defaults .RampUp )
82+ viper .SetDefault ("reportPath" , defaults .ReportPath )
7983 return nil
8084}
8185
@@ -107,5 +111,6 @@ func ResolveSettings() Settings {
107111 TrackUserLatency : viper .GetBool ("trackUserLatency" ),
108112 Prewarm : viper .GetBool ("prewarm" ),
109113 RampUp : viper .GetBool ("rampUp" ),
114+ ReportPath : viper .GetString ("reportPath" ),
110115 }
111116}
0 commit comments