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
@@ -16,6 +16,7 @@ var runCmd = &cobra.Command{
$ hrp run examples/ # run testcases in specified folder`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
hrp.SetLogLevel(logLevel)
var paths []hrp.ITestCase
for _, arg := range args {
paths = append(paths, &hrp.TestCasePath{Path: arg})