telemetry

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PostHogProjectAPIToken string

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func ConfigureCollector

func ConfigureCollector(opts Options) Collector

func (*Collector) CaptureCommand

func (c *Collector) CaptureCommand(command string, args []string, flags []string, runErr error)

CaptureCommand sends a simple event. Safe to call even if telemetry is disabled.

func (*Collector) Close

func (c *Collector) Close()

func (*Collector) Enabled added in v1.6.1

func (c *Collector) Enabled() bool

type Options

type Options struct {
	Debug            bool
	DisableAnalytics bool
	MuteTelemetry    bool
	GitVersion       string
	GitCommitHash    string
	Arch             string
	OS               string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL