mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
66 lines
1.4 KiB
Go
66 lines
1.4 KiB
Go
package analytics
|
|
|
|
const (
|
|
eventRun = "pmg_command_run"
|
|
eventCommandNpm = "pmg_command_npm"
|
|
eventCommandBun = "pmg_command_bun"
|
|
eventCommandPnpm = "pmg_command_pnpm"
|
|
eventCommandYarn = "pmg_command_yarn"
|
|
eventCommandPip = "pmg_command_pip"
|
|
eventCommandPip3 = "pmg_command_pip3"
|
|
eventCommandUv = "pmg_command_uv"
|
|
eventCommandPoetry = "pmg_command_poetry"
|
|
|
|
eventPmgGenerateEnvDocker = "pmg_command_generate_env_docker"
|
|
eventPmgGenerateEnvGitHubActions = "pmg_command_generate_env_github_actions"
|
|
eventPmgGenerateEnvGitLabCI = "pmg_command_generate_env_gitlab_ci"
|
|
)
|
|
|
|
func TrackCommandRun() {
|
|
TrackEvent(eventRun)
|
|
}
|
|
|
|
func TrackCommandNpm() {
|
|
TrackEvent(eventCommandNpm)
|
|
}
|
|
|
|
func TrackCommandBun() {
|
|
TrackEvent(eventCommandBun)
|
|
}
|
|
|
|
func TrackCommandPnpm() {
|
|
TrackEvent(eventCommandPnpm)
|
|
}
|
|
|
|
func TrackCommandYarn() {
|
|
TrackEvent(eventCommandYarn)
|
|
}
|
|
|
|
func TrackCommandPip() {
|
|
TrackEvent(eventCommandPip)
|
|
}
|
|
|
|
func TrackCommandPip3() {
|
|
TrackEvent(eventCommandPip3)
|
|
}
|
|
|
|
func TrackCommandUv() {
|
|
TrackEvent(eventCommandUv)
|
|
}
|
|
|
|
func TrackCommandPoetry() {
|
|
TrackEvent(eventCommandPoetry)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvDocker() {
|
|
TrackEvent(eventPmgGenerateEnvDocker)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvGitHubActions() {
|
|
TrackEvent(eventPmgGenerateEnvGitHubActions)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvGitLabCI() {
|
|
TrackEvent(eventPmgGenerateEnvGitLabCI)
|
|
}
|