mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* follow proper consistent naming in pypi packagemanager * follow proper consistent naming in pypi packagemanager - 2 * feat: add specialized command parsers to handle pip and uv command formats * add uv support & modify extractor to be more robust * add uv alias * refactor var name & add error handling * update readme & add support for `uv pip sync` cmd
51 lines
1.0 KiB
Go
51 lines
1.0 KiB
Go
package analytics
|
|
|
|
const (
|
|
eventRun = "pmg_command_run"
|
|
eventCommandNpm = "pmg_command_npm"
|
|
eventCommandBun = "pmg_command_bun"
|
|
eventCommandPnpm = "pmg_command_pnpm"
|
|
eventCommandPip = "pmg_command_pip"
|
|
eventCommandUv = "pmg_command_uv"
|
|
|
|
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 TrackCommandPip() {
|
|
TrackEvent(eventCommandPip)
|
|
}
|
|
|
|
func TrackCommandUv() {
|
|
TrackEvent(eventCommandUv)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvDocker() {
|
|
TrackEvent(eventPmgGenerateEnvDocker)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvGitHubActions() {
|
|
TrackEvent(eventPmgGenerateEnvGitHubActions)
|
|
}
|
|
|
|
func TrackCommandGenerateEnvGitLabCI() {
|
|
TrackEvent(eventPmgGenerateEnvGitLabCI)
|
|
}
|