Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.112.12 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAllEnv

func BindAllEnv(v *viper.Viper)

Types

type CLIConfig

type CLIConfig struct {
	// ProfileFileName is the name of the profile file, defaults to "profiles.yaml"
	ProfileFileName string `mapstructure:"profileFileName" json:"profileFileName,omitempty" default:"profiles.yaml"`

	// Logger is the logging configuration for the CLI
	Logger CLIConfigLogger `mapstructure:"logger" json:"logger,omitempty"`

	Telemetry CLIConfigTelemetry `mapstructure:"telemetry" json:"telemetry,omitempty"`
}

CLIConfig represents the global configuration for the Hatchet CLI. This is distinct from the CWD project configuration.

type CLIConfigLogger

type CLIConfigLogger struct {
	// Level is the logging level for the CLI. Possible values are: debug, info, warn, error
	Level string `mapstructure:"level" json:"level,omitempty" default:"warn"`

	// Format is the logging format for the CLI. Possible values are: text, json
	Format string `mapstructure:"format" json:"format,omitempty" default:"text"`

	// Prefix is an optional prefix for log lines
	Prefix string `mapstructure:"prefix" json:"prefix,omitempty"`
}

type CLIConfigTelemetry added in v0.96.0

type CLIConfigTelemetry struct {
	Enabled *bool `mapstructure:"enabled" json:"enabled,omitempty" default:"true"`

	AnonymousID string `mapstructure:"anonymousId" json:"anonymousId,omitempty"`

	Endpoint string `mapstructure:"endpoint" json:"endpoint,omitempty" default:"https://security.hatchet.run"`
}

type Profile

type Profile struct {
	TenantId     string    `mapstructure:"tenantId" json:"tenantId"`
	Name         string    `mapstructure:"name" json:"name"`
	Token        string    `mapstructure:"token" json:"token"`
	ExpiresAt    time.Time `mapstructure:"expiresAt" json:"expiresAt"`
	ApiServerURL string    `mapstructure:"apiServerURL" json:"apiServerURL"`
	GrpcHostPort string    `mapstructure:"grpcHostPort" json:"grpcHostPort"`
	TLSStrategy  string    `mapstructure:"tlsStrategy" json:"tlsStrategy" default:"tls"`
}

Profile represents a single profile configuration

type ProfileFile

type ProfileFile struct {
	Profiles map[string]Profile `mapstructure:"profiles"`
}

ProfileFile represents a list of profiles in the profiles config file

Directories

Path Synopsis
Package profilestore is the shared implementation of the Hatchet CLI's profile store (~/.hatchet/profiles.yaml by default).
Package profilestore is the shared implementation of the Hatchet CLI's profile store (~/.hatchet/profiles.yaml by default).

Jump to

Keyboard shortcuts

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