41
41
batchSize int
42
42
exitOnError bool
43
43
debugLogs bool
44
- ttl int
44
+ runDuration int
45
45
)
46
46
47
47
func init () {
@@ -59,15 +59,15 @@ func setupCli(baseCmd *cobra.Command) {
59
59
baseCmd .PersistentFlags ().IntVarP (& variableRate , "variable-rate" , "" , 0 , "Variable rate to value" )
60
60
baseCmd .PersistentFlags ().IntVarP (& variableBody , "variable-body" , "" , 0 , "Variable body size" )
61
61
baseCmd .PersistentFlags ().IntVarP (& fixedBody , "fixed-body" , "" , 0 , "Body size" )
62
- baseCmd .PersistentFlags ().IntVarP (& ttl , "ttl " , "" , 0 , "Minutes Time to live ( stop the test)" )
62
+ baseCmd .PersistentFlags ().IntVarP (& runDuration , "time " , "" , 0 , "Run Duration in seconds ( stop the test)" )
63
63
baseCmd .PersistentFlags ().BoolVarP (& exitOnError , "exit-on-error" , "" , true , "Close the app in case of error" )
64
64
baseCmd .PersistentFlags ().BoolVarP (& printStatsV , "print-stats" , "" , true , "Print stats" )
65
65
baseCmd .PersistentFlags ().BoolVarP (& debugLogs , "debug-logs" , "" , false , "Enable debug logs" )
66
66
baseCmd .PersistentFlags ().StringSliceVarP (& streams , "streams" , "" , []string {"perf-test-go" }, "Stream names" )
67
67
baseCmd .PersistentFlags ().StringVarP (& maxLengthBytes , "max-length-bytes" , "" , "0" , "Stream max length bytes, e.g. 10MB, 50GB, etc." )
68
68
baseCmd .PersistentFlags ().IntVarP (& maxAge , "max-age" , "" , 0 , "Stream Age in hours, e.g. 1,2.. 24 , etc." )
69
69
baseCmd .PersistentFlags ().StringVarP (& maxSegmentSizeBytes , "stream-max-segment-size-bytes" , "" , "500MB" , "Stream segment size bytes, e.g. 10MB, 1GB, etc." )
70
- baseCmd .PersistentFlags ().StringVarP (& consumerOffset , "consumer-offset" , "" , "first" , "Staring consuming, ex: first,last,next of number " )
70
+ baseCmd .PersistentFlags ().StringVarP (& consumerOffset , "consumer-offset" , "" , "first" , "Staring consuming, ex: first,last,next or random " )
71
71
baseCmd .AddCommand (versionCmd )
72
72
baseCmd .AddCommand (newSilent ())
73
73
}
0 commit comments