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