feat: report GA event for hrp wiki

This commit is contained in:
debugtalk
2022-05-28 21:44:37 +08:00
parent 62512b9601
commit b36e187caf
+6
View File
@@ -4,9 +4,15 @@ import (
"os/exec" "os/exec"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
) )
func OpenWiki() error { func OpenWiki() error {
sdk.SendEvent(sdk.EventTracking{
Category: "OpenWiki",
Action: "hrp wiki",
})
log.Info().Msgf("%s https://httprunner.com", openCmd) log.Info().Msgf("%s https://httprunner.com", openCmd)
return exec.Command(openCmd, "https://httprunner.com").Run() return exec.Command(openCmd, "https://httprunner.com").Run()
} }