cli

package
v3.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cli contains telemetry functions regarding the collection of data in the CLI. Should be imported as cli_telemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is an option for the CLI telemetry.

func WithCLITarget

func WithCLITarget(s string) Option

WithCLITarget defines the URL to which the CLI data will be sent.

type Task

type Task interface {
	Run(context.Context)
}

Task is a small task that sends telemetry data once a day.

func NewCLITelemetry

func NewCLITelemetry(opts ...Option) Task

NewCLITelemetry returns a wrapper that contains the necessary methods to collect and send telemetry data regarding CLI usage.

Jump to

Keyboard shortcuts

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