cli

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrExitCode added in v0.5.0

func ErrExitCode(code int) error

func IsEnvelopePrintedError added in v0.3.0

func IsEnvelopePrintedError(err error) bool

func IsExitCodeError added in v0.5.0

func IsExitCodeError(err error) (int, bool)

IsExitCodeError checks if an error is an exit code error.

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type CLITelemetry

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

CLITelemetry records access events directly to daemon.db when the daemon is not running. All operations are best-effort: failures are logged to stderr in verbose mode but never propagate.

func NewCLITelemetry

func NewCLITelemetry(clientName, sessionID string, verbose bool) *CLITelemetry

func (*CLITelemetry) ApplyRetention

func (t *CLITelemetry) ApplyRetention(maxAgeDays int) (int64, error)

func (*CLITelemetry) Close

func (t *CLITelemetry) Close() error

func (*CLITelemetry) RecordOperation

func (t *CLITelemetry) RecordOperation(request model.CommandRequest, envelope model.Envelope, opErr error, latency time.Duration, route string)

Jump to

Keyboard shortcuts

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