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
- func ErrorSummary(err error) string
- func PanicMessages(value any) (display, summary string)
- func Run(cfg Config, execute func() error, exitCode func(error) int)
- func SanitizeErrorText(message string) string
- func TruncateText(message string, maxRunes int) string
- type Config
- type Identity
- type RenderedError
Constants ¶
View Source
const MaxErrorRunes = 200
Variables ¶
This section is empty.
Functions ¶
func ErrorSummary ¶
func PanicMessages ¶
func SanitizeErrorText ¶
func TruncateText ¶
Types ¶
type Identity ¶
func DefaultIdentity ¶
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
Click to show internal directories.
Click to hide internal directories.