feat: global set log level

This commit is contained in:
debugtalk
2021-10-18 09:57:07 +08:00
parent ffbe60b833
commit 368ed9e14b
10 changed files with 52 additions and 11 deletions
+1
View File
@@ -18,6 +18,7 @@ var boomCmd = &cobra.Command{
$ hrp boom examples/ # run testcases in specified folder`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
hrp.SetLogLevel(logLevel)
var paths []hrp.ITestCase
for _, arg := range args {
paths = append(paths, &hrp.TestCasePath{Path: arg})