mirror of
https://github.com/lukaszraczylo/lolcathost.git
synced 2026-07-11 04:51:56 +00:00
feat: anonymous usage telemetry via oss-telemetry
Send a single fire-and-forget ping at startup to help track adoption and version spread. No persistent identifiers are collected. Opt out via any of: DO_NOT_TRACK=1 OSS_TELEMETRY_DISABLED=1 LOLCATHOST_DISABLE_TELEMETRY=1
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/lukaszraczylo/lolcathost/internal/protocol"
|
||||
"github.com/lukaszraczylo/lolcathost/internal/tui"
|
||||
"github.com/lukaszraczylo/lolcathost/internal/version"
|
||||
telemetry "github.com/lukaszraczylo/oss-telemetry"
|
||||
)
|
||||
|
||||
// version is set at compile time via ldflags
|
||||
@@ -27,6 +28,8 @@ const (
|
||||
)
|
||||
|
||||
func main() {
|
||||
telemetry.Send("lolcathost", appVersion)
|
||||
|
||||
// Flags
|
||||
daemonMode := flag.Bool("daemon", false, "Run as daemon (called by LaunchDaemon/systemd)")
|
||||
installFlag := flag.Bool("install", false, "Install the daemon service (requires sudo)")
|
||||
|
||||
Reference in New Issue
Block a user