feat: report GA event for hrp wiki

This commit is contained in:
debugtalk
2022-05-28 21:44:37 +08:00
parent ebc0a3768c
commit 6d08f13a70

View File

@@ -4,9 +4,15 @@ import (
"os/exec"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
)
func OpenWiki() error {
sdk.SendEvent(sdk.EventTracking{
Category: "OpenWiki",
Action: "hrp wiki",
})
log.Info().Msgf("%s https://httprunner.com", openCmd)
return exec.Command(openCmd, "https://httprunner.com").Run()
}