mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
feat: report GA event for hrp wiki
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user