refactor: move exec to myexec

This commit is contained in:
debugtalk
2022-10-16 14:13:43 +08:00
parent 185396e93b
commit f21c949897
17 changed files with 236 additions and 241 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
package wiki
import (
"os/exec"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp/internal/myexec"
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
)
@@ -14,5 +13,5 @@ func OpenWiki() error {
Action: "hrp wiki",
})
log.Info().Msgf("%s https://httprunner.com", openCmd)
return exec.Command(openCmd, "https://httprunner.com").Run()
return myexec.RunCommand(openCmd, "https://httprunner.com")
}