change: make API more concise

This commit is contained in:
debugtalk
2021-12-07 21:44:06 +08:00
parent e7e62e7c6a
commit 2b3c1b3c57
15 changed files with 154 additions and 137 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var boomCmd = &cobra.Command{
$ hrp boom examples/ # run testcases in specified folder`,
Args: cobra.MinimumNArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
hrp.SetLogLevel("WARN") // disable info logs for load testing
hrp.SetLogger("WARN", logJSON) // disable info logs for load testing
},
Run: func(cmd *cobra.Command, args []string) {
var paths []hrp.ITestCase