cli

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

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"`
}

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 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

Jump to

Keyboard shortcuts

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