clitelemetry

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package clitelemetry owns the reviewed CLI tracking configuration and privacy projection. The process entry uses the official SDK with reviewed CLI defaults.

Index

Constants

View Source
const MaxErrorRunes = 200

Variables

This section is empty.

Functions

func ErrorSummary

func ErrorSummary(err error) string

func PanicMessages

func PanicMessages(value any) (display, summary string)

func Run

func Run(cfg Config, execute func() error, exitCode func(error) int)

func SanitizeErrorText

func SanitizeErrorText(message string) string

func TruncateText

func TruncateText(message string, maxRunes int) string

Types

type Config

type Config = clitrack.Config

func Configuration

func Configuration(version string, identity Identity, commandPath, errorMessage *string) Config

type Identity

type Identity struct {
	UserID   string
	UserName string
	CorpID   string
}

func DefaultIdentity

func DefaultIdentity(configDir string) (identity Identity)

DefaultIdentity is only for invocations with no profile flag. The general argv/profile resolver remains with the CLI. No credentials are opened, refreshed or written: this reads the same metadata-only auth API as core.

func IdentityFromProfile

func IdentityFromProfile(profile *profilemetadata.ProfileMetadata) Identity

type RenderedError

type RenderedError struct{}

RenderedError prevents the SDK from printing an already presented error a second time; its reviewed summary is supplied through the shared c5 field.

func (RenderedError) Error

func (RenderedError) Error() string

Jump to

Keyboard shortcuts

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